1.

Solve : shutdown from batch file in xp limited account??

Answer»

Hi,

I tried shutdown -s in a batch file from my limited account but it's telling me a required privilege is not held by the client. Is there a way I can elevate my privileges specifically for this batch so it will shutdown the computer without having to drag the batch file into a privileged command prompt. Obviously, if I were GOING to do that I could more EASILY go to start > turn off computer.

Thanks for your time.

chin

Quote from: chin on February 22, 2008, 01:10:39 PM

without having to drag the batch file into a privileged command prompt.

How did you CREATE this privileged command prompt? You can use the runas command to run a JOB using more privileged credentials. Note: you cannot supply the password on the command line and the password must not be blank.

runas /? at the command prompt will give you all the gory details.



Discussion

No Comment Found