RUNAS command

  • Thread starter Thread starter pittspeed
  • Start date Start date
P

pittspeed

i'm pushing out the recent updates from microsoft by way of a logon script.

when i run it... i need admin rights for one or two of the updates...

i have this:

runas /noprofile /user:[email protected] "i:\hotfix.exe"

when i run this in the batch, it prompts the user for the password for
hotfix... what is the command line switch for no pass... can i use /savecred
...?

also, would adding the switch /env help out?

thanks!!!
 
You will have to use an utility called "sanur". I have it
but i dont know where i got it from. Search for it on
google. It will pipe in the password for you
automatically. But password will be visible to users. If
you dont want to make password visible. you will have to
make a batch file using RUNAS command and then use bat2exe
and convert the batch file to exe or .com
-Nimit
 
Back
Top