Re: Join Windows 2000 computer to domain
- From: "jason" <newemailbox@xxxxxxx>
- Date: Wed, 21 Mar 2007 23:53:02 +0800
@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
.
- Prev by Date: Re: IE 7 Script bSecurity
- Next by Date: ERROR: ActiveX component can't create object: 'HNetCfg.fwPolicy2'
- Previous by thread: If a drive is already mapped, then open Windows Explorer
- Next by thread: ERROR: ActiveX component can't create object: 'HNetCfg.fwPolicy2'
- Index(es):
Relevant Pages
|