Page 2 of 2 <12
Topic Options
#63172 - 2004-07-03 05:19 AM Re: Rename Workstation
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
This method would leave the old computername still attached to the domain, which is not desireable.
_________________________
There are two types of vessels, submarines and targets.

Top
#63173 - 2004-07-03 11:35 AM Re: Rename Workstation
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
As long as there XP Workstations NETDOM can do the rename and join/move into the Domain.

Microsoft Knowledge Base Article - 298593
HOW TO: Use the Netdom.exe Utility to Rename a Computer in Windows XP
http://support.microsoft.com/?id=298593

Top
#63174 - 2004-07-03 03:07 PM Re: Rename Workstation
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
NETDOM5 can rename Win2K as well.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#63175 - 2004-07-04 08:14 AM Re: Rename Workstation
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Thanks Les,

Hadn't tried it and documentation only mentioned XP not 2000.

Top
#63176 - 2005-02-09 05:57 PM Re: Rename Workstation
jechilt Offline
Starting to like KiXtart

Registered: 2000-12-01
Posts: 102
Loc: Denver Colorado
Quote:

NETDOM5 can rename Win2K as well.




never heard of netdom5. where can we get this file?
we need to rename our win2k computers.
_________________________
John
LM Contractor
One of the 2 dads

Top
#63177 - 2005-02-09 06:10 PM Re: Rename Workstation
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
From Microsoft... it is listed as an AD Recovery Tool.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#63178 - 2005-02-09 06:17 PM Re: Rename Workstation
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Best Practices: Active Directory Forest Recovery
http://www.microsoft.com/windows2000/downloads/tools/default.asp
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#63179 - 2005-02-09 06:24 PM Re: Rename Workstation
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Here are some updated links to help you locate the tool. Best bet would be either the Windows XP SP2 Tools update or the Server 2003 version. The link listed by Les does have the NETDOM.EXE file inside along with a whitepaper, but is an older version then the 2003 and XP SP2 version updates.

Description of Netdom.exe Syntax and Versions
http://support.microsoft.com/default.aspx?scid=kb;en-us;329721

Windows XP Service Pack 2 Support Tools
http://www.microsoft.com/downloads/details.aspx?FamilyID=49ae8576-9bb9-4126-9761-ba8011fabf38&displaylang=en&Hash=W6YFBY9

The following Support Tools have been updated in Service Pack 2:

bitsadmin.exe
extract.exe
httpcfg.exe
iadstools.dll
ipseccmd.exe
netdom.exe
replmon.exe

How To Use the Netdom.exe Utility to Rename a Computer in Windows Server 2003
http://support.microsoft.com/default.aspx?scid=kb;en-us;325354

This article describes how to use the Netdom.exe utility (included in Windows Server 2003 Support Tools) to rename a computer that is a member of a Microsoft Windows 2000 or Windows Server 2003 domain. This procedure can be performed either locally or remotely on the computer that is being renamed. Also, the procedure does not require that you to reset or manually re-create the computer account in the domain.
The Netdom.exe utility can rename a computer that is a member of a Windows Server 2003 domain. However, to rename the computer, you must specify the user accounts that have local administrative permissions and the object of the computer account in Active Directory.

How To Use the Netdom.exe Utility to Rename a Computer in Windows XP
http://support.microsoft.com/kb/298593/EN-US/

Windows Server 2003 Administration Tools Pack
The Windows Server 2003 Administration Tools Pack (Adminpak.msi) provides server management tools that allow administrators to remotely manage Windows 2000 Servers and Windows Server 2003 family servers. This is the final version (build 3790) of the Adminpak.msi file.
http://www.microsoft.com/downloads/details.aspx?FamilyID=c16ae515-c8f4-47ef-a1e4-a8dcbacff8e3&DisplayLang=en

Windows Server 2003 Resource Kit Tools
The Windows Server 2003 Resource Kit Tools are a set of software tools for administrators, developers, and power users to manage Active Directory, Group Policy, TCP/IP Networks, Registry, Security, Scalability and many other areas of the Windows Server 2003 operating system.
http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en


Top
#63180 - 2005-02-09 06:32 PM Re: Rename Workstation
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
The question was:
Quote:

never heard of netdom5. where can we get this file?




My link is to version 5.2.3687.0 otherwise known as NETDOM5. I have used this version to rename hundreds of W2K machines using a KiXforms script that I posted on this board.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#63181 - 2005-02-09 10:11 PM Re: Rename Workstation
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
This is a piece of aq kixform I wrote to join, rename, and move XP machines in AD... You will need to dig into it to get at the few lines of code that do each function.

Code:
 


$newName = $ComputerBox.text
$domain = $DomainBox.text
$password = $PasswordBox.text
$user = $AdminBox.text
$OU = $OUCombo.text
$JOINType = 1 + 2 + 32

$objNetwork = CreateObject("WScript.Network")
if not @error
$strComputer = $objNetwork.ComputerName
$objComputer = GetObject("winmgmts:{impersonationLevel=Impersonate}!\\"+$strComputer+"\root\cimv2:Win32_ComputerSystem.Name='"+$strComputer+"'")
$ReturnValue = $objComputer.JoinDomainOrWorkGroup($Domain, $password, $Domain+"\"+$user, $OU, $JOINtype)
If $ReturnValue
Status("Failed joining "+@wksta+" to "+$domain)
Status($ReturnValue)
return
EndIf
sleep 20

Status("Renaming")
$objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" + $strComputer + "\root\cimv2")
$colComputers = $objWMIService.ExecQuery("Select * from Win32_ComputerSystem")
For Each $objComputer in $colComputers
$err = $objComputer.Rename($NewName, $password, $Domain + "\" + $user)
If $err
Status("Failed Renaming "+@wksta+" to "+$NewName)
Status($err)
endif
Next

For Each $name In split($AccountsBox.text,',')
$name=trim($name)
Status("Adding User "+$name)
if not $name="Domain Admins"
$objGroup = GetObject('WinNT://' + @wksta + '/' + 'Administrators')
$objGroup.Add ('WinNT://'+ $domain + '/' + $name)
if @error
Status(@serror +' error adding '+$name)
EndIF
endif
Next
Status("Complete - Restart PC")
endif


_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#63182 - 2005-02-11 12:59 PM Re: Rename Workstation
jechilt Offline
Starting to like KiXtart

Registered: 2000-12-01
Posts: 102
Loc: Denver Colorado
Quote:

From Microsoft... it is listed as an AD Recovery Tool.




thanks...got it.
_________________________
John
LM Contractor
One of the 2 dads

Top
#63183 - 2005-02-22 01:09 AM Re: Rename Workstation
ClientMaster Offline
Fresh Scripter

Registered: 2005-01-19
Posts: 46
Loc: Tokyo, Japan
Just a note:

I use a free app called NEWSID to rename the workstation and change the SID.
I have scripted to automatically rename PC to serial number, change SID, reboot, add to domain, reboot and so on.
I have had no problems with NEWSID...also very easy to use.
_________________________
How can you know good, unless you experience bad.

Top
#63184 - 2005-02-22 03:01 AM Re: Rename Workstation
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Just renaming a workstation does not necessitate a SID change. SIDs only need to be changed if the operating system is being cloned. And even then, the use of e.g. SYSPREP will take care of the SID-issue. Only clonign an OS after the GUI-based setup will require a SID change.

Edited by sealeopard (2005-02-22 03:02 AM)
_________________________
There are two types of vessels, submarines and targets.

Top
Page 2 of 2 <12


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 248 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.071 seconds in which 0.029 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org