#63173 - 2004-07-03 11:35 AM
Re: Rename Workstation
|
NTDOC
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
|
|
|
|
#63176 - 2005-02-09 05:57 PM
Re: Rename Workstation
|
jechilt
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
|
|
|
|
#63179 - 2005-02-09 06:24 PM
Re: Rename Workstation
|
NTDOC
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
|
|
|
|
#63181 - 2005-02-09 10:11 PM
Re: Rename Workstation
|
Radimus
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
|
Top
|
|
|
|
#63182 - 2005-02-11 12:59 PM
Re: Rename Workstation
|
jechilt
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
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
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 507 anonymous users online.
|
|
|