Sysprep Vista ~ Unattend Join Domain not working

Posted on 2007-04-09
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="" xmlns:xsi="">
Question by:mentok74
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
LVL 70

Expert Comment

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.

Author Comment

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

Author Comment

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.

Author Comment

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 JOIN_UNSECURE           = 64
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, _

Accepted Solution

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

EE Admin

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Can't open PDF doc in AOL Mail 9.7 4 4,827
compressed folders? 3 413
IE Add-ons Remove 11 131
Vista Desktop no longer boots; migrating to new W/7 Proi HP system and needs help 16 544
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. …
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 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