Shutdown or Reboot a remote Windows box with remote credentials (Quick Tip)
Thursday, September 24, 2009 at 11:06PM
Shaun Hess in Command Line, CommandLine Fu, Quick Tip, Remote Administration, Systems Administration, Windows, Windows Admin, Windows IT

Quick Tip: Shutdown or Reboot a remote Windows box with remote credentials from the cmd line

Heres the setup, your logged into a workstation and need to reboot a remote box, but your account doesn't have the juice to run the standard shutdown command:

Many people don't know there is a simple flag you can use to pass remote credentials (the acct doesn't need to exist on the local box or even the same domain!) using the runas command:

Success! Remember you can run all sorts of commands both remotely and locally using different credentials using this command.

Article originally appeared on shaunhess.com (http://www.shaunhess.com/).
See website for complete article licensing information.