Tuesday 30 April 2013

Some PowerShell Commands

 

Restarting Computer

Use the following command to restart the local computer

Restart-Computer

Shutdown Computer

Use the following command to restart the local computer

Stop-Computer

Renaming Computer

Use the following command to restart the local computer

Rename-Computer -NewName <name_in_string>

You need to restart the computer after renaming. If you want powershell to do it use the “-Restart” option as shown below

Rename-Computer -NewName <name_in_string> -Restart

No comments:

Post a Comment