mentok74
asked on
Sysprep Vista ~ Unattend Join Domain not working
Has anyone else been able to get the UnattendJoin Domain Sysprep setting to work in Vista? Mine keeps failing. I have verified the account is active and has rights and the password is correct but it keeps failing.
Here is the section in my xml file.
<settings pass="specialize">
<component name="Microsoft-Windows-Un attendedJo in" processorArchitecture="x86 " publicKeyToken="31bf3856ad 364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Identification>
<Credentials>
<Domain>ABCTech</Domain>
<Password>AdminPW</Passwor d>
<Username>SysprepUser</Use rname>
</Credentials>
<JoinDomain>ORBDEV</JoinDo main>
</Identification>
</component>
Here is the section in my xml file.
<settings pass="specialize">
<component name="Microsoft-Windows-Un
<Identification>
<Credentials>
<Domain>ABCTech</Domain>
<Password>AdminPW</Passwor
<Username>SysprepUser</Use
</Credentials>
<JoinDomain>ORBDEV</JoinDo
</Identification>
</component>
Check that the IP information the vista is using (either assigned statically or via DHCP) are correct for the domain and include the preferred DNS server settiing which points to the Domain Controller.
ASKER
The IP and DNS are set to DHCP. I have no problem manually adding the machine to the domain only through Sysprep.
ASKER
Can you be more specific? I have spent more than 40hours on the phone with MS support working with WSIM, ImageX, WinPE and Sysprep and still haven not been able to accomplish the task previously outlined. MS tells me I need a custom script, no prexisting tools will solve my problem.
ASKER
Here is the script that ended up working for me:
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 = "Domain"
strPassword = "Password"
strUser = "User"
Set objNetwork = CreateObject("WScript.Netw ork")
strComputer = objNetwork.ComputerName
Set objComputer = _
GetObject("winmgmts:{imper sonationLe vel=Impers onate}!\\" & _
strComputer & "\root\cimv2:Win32_Compute rSystem.Na me='" _
& strComputer & "'")
ReturnValue = objComputer.JoinDomainOrWo rkGroup(st rDomain, _
strPassword, _
strDomain & "\" & strUser, _
NULL, _
JOIN_DOMAIN + ACCT_CREATE)
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 = "Domain"
strPassword = "Password"
strUser = "User"
Set objNetwork = CreateObject("WScript.Netw
strComputer = objNetwork.ComputerName
Set objComputer = _
GetObject("winmgmts:{imper
strComputer & "\root\cimv2:Win32_Compute
& strComputer & "'")
ReturnValue = objComputer.JoinDomainOrWo
strPassword, _
strDomain & "\" & strUser, _
NULL, _
JOIN_DOMAIN + ACCT_CREATE)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.