Want to change the host name of the Windows with the command prompt.
example) Changing host name from PC-1 to PC-2.
Open up the command prompt and type the below.
And then, restart your PC.
You must run the command prompt as administrator privilege.
Don’t forget restarting your PC.