I'm looking for a command line utility or a script that will rename a
Windows 2000 workstation.

The Win32_ComputerSystem ObjComputer.Rename only works on Windows XP and the
Windows 2000 Netdom.exe does not have the functionality to rename a
computer.

Any help is greatly appreciated.

TIA

Charles

Re: Rename a 2000 computer by Torgeir

Torgeir
Thu Dec 02 11:37:15 CST 2004

Charles Blair wrote:

> I'm looking for a command line utility or a script that will rename a
> Windows 2000 workstation.
>
> The Win32_ComputerSystem ObjComputer.Rename only works on Windows XP and the
> Windows 2000 Netdom.exe does not have the functionality to rename a
> computer.
Hi

A)
If you have access to a Windows 2003 Server CD, get the netdom.exe
that is in the "Support Tools" install, and take a look at the
RENAMECOMPUTER parameter.

Netdom.exe from this kit can be used for Win2k, WinXP as well as Win2k3.


B)
Changing computer name for WNT/W2k/WXP with vbscript and registry
writes, alternatively with command line utility Compname.exe:

http://groups.google.com/groups?selm=3DBD6E02.F0D75A0%40hydro.com

Note that above script as well as Compname.exe will break any
domain membership.



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx