|
Answer» Hello,
I need to guidance.
I want to create a a bat file that will install a program VIA a WINDOWS logon bat file. runas /noprofile /user:(DOMAIN)\domain user "\\network path\directory\file.exe"
The problem I have is I do not want users to enter an admin password (users no not have admin rights)
Can this be done with a bat file ?
Thanks for the helpHello, and welcome to COMPUTER Hope!
From what I understand, you wish to run a remotely located file without requiring the user to enter a password to access it. 'runas' does not seem to allow for such a program. You might consider placing the file within a profile without a password, and then add instructions to simply press enter. You can suppress the output of 'runas' by adding "1>nul 2>&1" at the end.
EDIT: You could use 'start' instead, not sure if you can use that for remote work though.Sounds slightly NEFARIOUS to me...Why not use Group Policy? You are on a domain.
|