View Single Post
Old 09-07-2005, 02:19   #12
Stuart
-
 
Stuart's Avatar
 
Join Date: Jun 2003
Location: Somewhere
Services: Virgin for TV and Internet, BT for phone
Posts: 26,546
Stuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver bling
Stuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver bling
Re: Remote Server Shutdown

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.
Stuart is offline   Reply With Quote