PowerTip: Use PowerShell to Shut Down a Remote Computer

PowerTip: Use PowerShell to Shut Down a Remote Computer

  • Comments 1
  • Likes

Summary: Use Windows PowerShell to shut down a remote computer.

Hey, Scripting Guy! Question I need to shut down a remote computer, but the account that I am logged on to does not have rights. What should I do?

Hey, Scripting Guy! Answer Use the Stop-Computer cmdlet and specify both the name of the remote computer and the credentials to use for the operation. When the cmdlet runs, you will be prompted for a password, as shown here.

Stop-Computer –computer DC1 –Credential nwtraders\administrator

 

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • nice post.. wonderful powerful shutdown