Change Windows Computer Name
Change Computer Name using PowerShell
From an elevated PowerShell enter the following PowerShell’s command, substituting with your preferred name, and press the “Enter” to rename the computer:
Rename-Computer -NewName "<NewHostname>"
Change Computer Name using Command Prompt
To change the computer’s hostname, execute the following command from the elevated Windows command prompt:
wmic computersystem where name="%computername%" call rename name="<NewHostname>"
No Comments