Changing the system name with PowerShell
Using PowerShell to change the Windows system name
May 2, 2014
![Changing the system name with PowerShell Changing the system name with PowerShell](https://eu-images.contentstack.com/v3/assets/blt07f68461ccd75245/blt8a4f00baec98c4af/661cf627069e0086f4e2a71f/abstractplanet_1_4.jpg?width=1280&auto=webp&quality=95&format=jpg&disable=upscale)
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
About the Author
You May Also Like