Rename a computer using WMIC; how to get around "Invalid Global Switch" error

To rename a computer we can use the “Rename” method of the “Win32_ComputerSystem” WMI class. The command looks like this: WMIC ComputerSystem where Name=COMPUTERNAME call Rename Name=NewName Don't forget to reboot as you will not be prompted to restart the system. Netdom can do the same thing– Don’t forget that you can also rename a […]

To rename a computer we can use the “Rename” method of the “Win32_ComputerSystem” WMI class. The command looks like this: WMIC ComputerSystem where Name=COMPUTERNAME call Rename Name=NewName

Don't forget to reboot as you will not be prompted to restart the system.

Netdom can do the same thing– Don’t forget that you can also rename a computer using Netdom. You may find the Netdom method more user friendly if you are just renaming one system. Using WMIC may come in handy if you need to script the renaming of several machines or just want show off your “skills” to coworkers.

325354 How To Use the Netdom.exe Utility to Rename a Computer in Windows Server 2003

Full Article