Re: Join Windows 2000 computer to domain

Tech-Archive recommends: Fix windows errors by optimizing your registry



@echo off
rem
rem This line does the actual work...
netdom join "%computername%" /Domain:overmcse.com
/OU:ou=test1,OU=test,dc=***,dc=com /UserD:*** /PasswordD:*** /REBoot:10




"zeb2100" <zeb2100@xxxxxxxxxxxxxxxxxxxxxxxxx> дÈëÏûÏ¢ÐÂÎÅ:EF61DF15-2074-43AC-A4A6-3C7157C6D4DB@xxxxxxxxxxxxxxxx
I use a script that I found at the scripting guys website to join Windows
xp
machines to the domain. This script will not work for Windows 2000
Professional machines. Does anyone have a script for joining Windows 2000
machines to the domain, or can this script be modified to allow Windows
2000
machines to the domain? here is the script I am using currently:

Const JOIN_DOMAIN = 1
Const ACCT_CREATE = 2
Const ACCT_DELETE = 4
Const WIN9X_UPGRADE = 16
Const DOMAIN_JOIN_IF_JOINED = 32
Const JOIN_UNSECURE = 64
Const MACHINE_PASSWORD_PASSED = 128
Const DEFERRED_SPN_SET = 256
Const INSTALL_INVOCATION = 262144

strDomain = "xxx.xxx.xxx"
strPassword = "xxxxxx"
strUser = "xxxx"

Set objNetwork = CreateObject("WScript.Network")
strComputer = objNetwork.ComputerName

Set objComputer = GetObject("winmgmts:{impersonationLevel=Impersonate}!\\"
& _
strComputer & "\root\cimv2:Win32_ComputerSystem.Name='" & _
strComputer & "'")

ReturnValue = objComputer.JoinDomainOrWorkGroup(strDomain, _
strPassword, strDomain & "\" & strUser, NULL, _
JOIN_DOMAIN + ACCT_CREATE)

MsgBox "Finished Domain change!", vbSystemModal+vbInformation


.



Relevant Pages

  • Re: VBScript does not run on Windows 2003
    ... Const WinHttpRequestOption_SslErrorIgnoreFlags = 4 ... Call CheckForErrors(oError, oNode, oResultFromWeb, sStatus) ... Perhaps post the script removing your company specific information ... I am testing it running on a Windows 2003 box and it is ...
    (microsoft.public.windows.server.scripting)
  • Win32_NetworkAdapterConfiguration Loop through W2K machines
    ... I have knocked up a script to retrieve IP info from an array of machines. ... works fine as long as every machine is Windows 2003 or Windows XP, ...
    (microsoft.public.scripting.vbscript)
  • Re: DST Updates Deployed via Group Policy
    ... I did run the script locally on the testing machine ... WAS able to select the group in the GPO editor so I assumed that it could ... things are working, that is, the machines are being healthy little ... Windows 2000 Pro machines and 2 Windows 2000 Servers that require this ...
    (microsoft.public.windows.group_policy)
  • RE: Local Admin Password
    ... You can use cusrmgr.exe from the Windows 2000 Resource Kit. ... You may be able to use the ListMembers.vbs script from the Windows 2000 ... you much closer than having to create a list of 2000 machines manually. ...
    (microsoft.public.win2000.active_directory)
  • Re: Change local administrator password for all PCs in the domain
    ... > I have about 200 workstations in my Windows 2000 domain. ... you could setup a custom script or Group Policy (in ... no workgroup machines. ...
    (microsoft.public.windows.server.scripting)