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 […]

Share online:

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

About The Author

Deepak Gupta is a IT & Web Consultant. He is the founder and CEO of diTii.com & DIT Technologies, where he’s engaged in providing Technology Consultancy, Design and Development of Desktop, Web and Mobile applications using various tools and softwares. Sign-up for the Email for daily updates. Google+ Profile.