Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Renameing a windows 2000 machine via a script
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Joel Handler  
View profile  
 More options Dec 10 2003, 10:19 am
Newsgroups: microsoft.public.windows.server.scripting
From: "Joel Handler" <jhand...@ias.edu>
Date: Wed, 10 Dec 2003 07:17:53 -0800
Local: Wed, Dec 10 2003 10:17 am
Subject: Renameing a windows 2000 machine via a script
Does anyone know how you can rename a computer through a
script?

Thanks,
Joel


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Torgeir Bakken (MVP)  
View profile  
 More options Dec 10 2003, 10:29 am
Newsgroups: microsoft.public.windows.server.scripting
From: "Torgeir Bakken (MVP)" <Torgeir.Bakken-s...@hydro.com>
Date: Wed, 10 Dec 2003 16:28:17 +0100
Local: Wed, Dec 10 2003 10:28 am
Subject: Re: Renameing a windows 2000 machine via a script

Joel Handler wrote:
> Does anyone know how you can rename a computer through a
> script?

Hi

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 methods 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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Kolitz  
View profile  
 More options Dec 10 2003, 4:25 pm
Newsgroups: microsoft.public.windows.server.scripting
From: "Mike Kolitz" <mike...@idontlikespam.mvps.org>
Date: Wed, 10 Dec 2003 15:26:18 -0600
Local: Wed, Dec 10 2003 4:26 pm
Subject: Re: Renameing a windows 2000 machine via a script
To keep domain memberships, you'll need a tool called NetDom.
Once you've got it, the syntax is something similar to:

netdom renamecomputer %computername% /newname:<new name> /userd:<userID>
/passwordd:<password> /force /verbose /reboot:<time limit>

*NOTE:  "/passwordd" is not a typo.
--
Mike Kolitz MCSE 2000
MS-MVP - Windows Setup and Deployment

Remember to check Windows Update often,
and apply the patches marked as Critical!
http://windowsupdate.microsoft.com

"Torgeir Bakken (MVP)" <Torgeir.Bakken-s...@hydro.com> wrote in message
news:3FD73B91.2CAC9B2@hydro.com...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Torgeir Bakken (MVP)  
View profile  
 More options Dec 10 2003, 4:54 pm
Newsgroups: microsoft.public.windows.server.scripting
From: "Torgeir Bakken (MVP)" <Torgeir.Bakken-s...@hydro.com>
Date: Wed, 10 Dec 2003 22:52:29 +0100
Local: Wed, Dec 10 2003 4:52 pm
Subject: Re: Renameing a windows 2000 machine via a script

Mike Kolitz wrote:
> To keep domain memberships, you'll need a tool called NetDom.
> Once you've got it, the syntax is something similar to:

> netdom renamecomputer %computername% /newname:<new name> /userd:<userID>
> /passwordd:<password> /force /verbose /reboot:<time limit>

Hi

That is for the netdom.exe that comes with "Support Tools" for Windows XP, and
it will not work on a Windows 2000 computer as the OP wanted. It will err with
the message "The procedure entry point NetAddAlternateComputerName could not be
located in the dynamic link library NETAPI32.dll." if you try it on a Win2k
computer.

The netdom.exe that comes with "Support Tools" for Windows 2000 does not
support the parameter renamecomputer.

--
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Kolitz  
View profile  
 More options Dec 10 2003, 6:16 pm
Newsgroups: microsoft.public.windows.server.scripting
From: "Mike Kolitz" <mike...@idontlikespam.mvps.org>
Date: Wed, 10 Dec 2003 17:16:38 -0600
Local: Wed, Dec 10 2003 6:16 pm
Subject: Re: Renameing a windows 2000 machine via a script
Hi Torgeir,

We're rolling out Windows 2000 right now, and that's the technique that we
use to rename the PCs.  After your comment, I decided to check out why this
is working for us...

It looks like one of the consultants who helped us design our build process
nabbed the NETDOM.EXE from a beta build of Windows Server 2003.

I've just confirmed that the release version of Windows Server 2003's
NETDOM.EXE (5.2.3790) does work on Windows 2000.

Sorry for the bit of misinformation.  It was news to me, too! :)

--
Mike Kolitz MCSE 2000
MS-MVP - Windows Setup and Deployment

Remember to check Windows Update often,
and apply the patches marked as Critical!
http://windowsupdate.microsoft.com

"Torgeir Bakken (MVP)" <Torgeir.Bakken-s...@hydro.com> wrote in message
news:3FD7959C.FC79ABE0@hydro.com...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google