Rename Computer From its Command Line

  • Thread starter Thread starter Paul Anderson
  • Start date Start date
P

Paul Anderson

We have Windows XP and 2000 computers on a workgroup and need a command line
utility to change their computer names. Is there any such utility available
?

I can't find anything on the 'Net, nor in the resource kit tools. It
doesn't have to be sophisticated, just taking the new name as a parameter
and changing the computer name with a restart is fine.

If not, how about a script ?

I'd be very grateful! Many thanks.
 
Paul said:
We have Windows XP and 2000 computers on a workgroup and need a command line
utility to change their computer names. Is there any such utility available
?

I can't find anything on the 'Net, nor in the resource kit tools. It
doesn't have to be sophisticated, just taking the new name as a parameter
and changing the computer name with a restart is fine.

Hi

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

http://groups.google.com/[email protected]

Note that above methods will break any domain membership.


If WinXP or newer:

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/[email protected]

http://www.microsoft.com/technet/scriptcenter/compmgmt/scrcm36.asp

Note that this will work for a computer that is not member of a domain as well.
 
We have Windows XP and 2000 computers on a workgroup and need a command line
utility to change their computer names. Is there any such utility available
?

I can't find anything on the 'Net, nor in the resource kit tools. It
doesn't have to be sophisticated, just taking the new name as a parameter
and changing the computer name with a restart is fine.

If not, how about a script ?

I'd be very grateful! Many thanks.

If you are imaging machines and need to assign hostnames as a
post-install script, newsid from Sysinternals works great.



.................................................................
Posted via TITANnews - Uncensored Newsgroups Access-=Every Newsgroup - Anonymous, UNCENSORED, BROADBAND Downloads=-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top