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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top