How to Rename Computer using Command Prompt
Run Command Prompt as Administrator. To do this open Start Menu and enter cmd. Right-click Command Prompt and select Run as Administrator.
Enter the following command: wmic computersystem where name=”%computername%” call rename name=”NAME”. Instead of NAME enter the name you would like to give to your PC.