Hi
For WinXP clients:
Rename Method in Class Win32_ComputerSystem
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/rename_method_in_class_win32_computersystem.asp
VBScript examples:
http://groups.google.com/groups?selm=3E4F0E3A.8476E52E%40hydro.com
http://www.microsoft.com/technet/scriptcenter/compmgmt/scrcm36.asp
For Win2k and WinXP clients:
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.
C:\>C:\Win2k3SupportTools\Netdom.exe HELP RENAMECOMPUTER
The syntax of this command is:
NETDOM RENAMECOMPUTER machine /NewName:new-name
/UserD:user [/PasswordD:[password | *]]
[/UserO:user [/PasswordO:[password | *]]]
[/Force]
[/REBoot[:Time in seconds]]
NETDOM RENAMECOMPUTER renames a computer that is joined to a domain. The
computer object in the domain is also renamed. Certain services, such as the
Certificate Authority, rely on a fixed machine name. If any services of this
type are running on the target computer, then a computer name change would
have an adverse impact. This command should not be used to rename a domain
controller.
(snip)
--
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