Changing the system name with PowerShell

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 <MyDomain\Admin> -Restart

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish