There are multiple reasons you may wish to change a computer name remotely – here is one method:
Open a command prompt from whichever folder psexec.exe is in.
The command we are going to be using to change the computer name is the below wmic command:
WMIC computersystem where caption='currentname' rename newname
Put together with psexec it will looks something like this:
psexec \\PC_NAME_OR_IP -u "USERNAME HERE" -p "PASSWORD" WMIC computersystem where caption='CURRENT_NAME' rename NEW_NAME
Exchange usernames and pc names as appropriate.
There is a couple of great sites with all the psexec switches, ss64 is my favorite.
Now you can change a computer name remotely