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… Read the full text.