Summary: Use Windows PowerShell to rename a newly created computer.
How can I use Windows PowerShell to rename a computer if I don’t know the machine name?
Use the Rename-Computer cmdlet and the built in HOSTNAME command, then reboot the computer.
For example, to rename a computer to called MININT-123 to CONTOSO-FS:
RENAME-COMPUTER –computername MININT-123 –newname CONTOSO-FS