Changing the system name with PowerShell

Using PowerShell to change the Windows system name

Michael Otey

May 2, 2014

1 Min Read
Changing the system name with PowerShell

 Q: I have a number of virtual systems that I like to rename. Can I use PowerShell to rename them?

A: Absolutely. The PowerShell Rename-Computer cmdlet makes it easy to rename your systems. Its far easier than using the GUI. The Rename-Computer cmdlet also has a handy but optional –Restart parameter that causes the system to reboot following the name change. You can see how to use the Rename-Computer cmdlet to rename a workgroup system below:

Rename-Computer -NewName <Name> -Restart

If the systems that you want to rename are part of a domain then you’ll need to provide the domain’s administrative credentials that you can see below:

Rename-Computer -NewName <Name> -DomainCredential <MyDomainAdmin> -Restart

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like