Rename-Computer
CautionRename a computer
Rename-Computer -NewName <name> -Restart
Renames the machine; pass -DomainCredential on domain members. Standard kitting automation.
Examples
Rename-Computer -NewName PC-2F-014 -DomainCredential corp\admin -RestartRename and reboot
Syntax
Rename-Computer -NewName n [-DomainCredential cred] [-Restart]
Before you run it
Needs a reboot; mind references to the old name.
Related commands
- hostnameShow computer name
- Add-ComputerJoin a domain
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store