Quote:
|
Originally Posted by Raistlin
Is there any way that I can run the shutdown command AS another user (ie as an Admin acount from the Server)?
I know the Username and Password.
__________________
Quote:
|
Originally Posted by s1lv3r
just imagine if M$ had created a Server OS you could shut down remotely without admin rights.. lol, it would be an sysadmin's worst nightmare
|
TBH I'm suprised that they haven't 
|
To run any command as another user, use the "Runas" command. The format is
Quote:
|
runas /user:domain\username /pass:password "command.exe par1 par2 par3"
|
where "domain" is the either the name of the domain, or the name of the remote server. Username and password should be obvious. Substitute the actual program for "command.exe" and it's parameters for "par1","par2" and "par3"
Bear in mind that the program uses the account you specify, so if you specify account that doesn't have access to your local system, you might run into problems.