Solved

Sysprep Vista ~ Unattend Join Domain not working

Posted on 2007-04-09
6
2,235 Views
Last Modified: 2012-06-21
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-UnattendedJoin" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" 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</Password>
                    <Username>SysprepUser</Username>
                </Credentials>
                <JoinDomain>ORBDEV</JoinDomain>
            </Identification>
        </component>
0
Comment
Question by:mentok74
  • 3
6 Comments
 
LVL 70

Expert Comment

by:KCTS
ID: 18877066
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.
0
 

Author Comment

by:mentok74
ID: 18877147
The IP and DNS are set to DHCP.  I have no problem manually adding the machine to the domain only through Sysprep.
0
 

Author Comment

by:mentok74
ID: 18940890
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.
0
 

Author Comment

by:mentok74
ID: 18967828
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.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)
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 19154238
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
malware removal 5 667
Upgrade from Vista to 7 4 780
New to Windows Vista, clicked "Lock Computer" by mistake instead of  reboot... 5 77
Video problems on Dell Inspiron One 2330 15 486
The Service applet starts in Extended Mode by Default, with a taskpad on the left of the services pane. This view mode was introduced in XP. As I find it not very usefull, I like to use the Standard view as default, and without the Console tree. …
So who is this article for? If you are like most of the computer users out there, you probably only realize the meaning of 'System maintenance' after something goes wrong. This article is for you if you care about keeping your system working opti…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question