When you create a new Windows server it usually assigns a name of its own. I always prefer using my own names for servers – I usually create the name so it gives some indication of the machine’s purpose.
Renaming a computer is simple
On the local computer run
Rename-Computer -NewName test01 -Force –Restart
This will rename the computer and force the restart.
If you want to do this remotely the cmdlet has a –ComputerName parameter plus the ability to define local or domain credentials.