none
Sysprep Automatically Adding to Domain

    Question

  •  

    For some reason that I can't figure out, my installation is always adding the machine to domain after sysprep!

    This is really strange since I set on unattend.xml the option JoinWorkgroup=IPTWORKGROUP.

     

    Here goes my unattend.xml. Pleeeeeease Help!

     

    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urnTongue Tiedchemas-microsoft-com:unattend">
        <servicing>
            <package action="configure">
                <assemblyIdentity name="Microsoft-Windows-Foundation-Package" version="6.0.6000.16386" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="" />
                <selection name="TabletPCOC" state="false" />
                <selection name="Adhoc-Meetings" state="false" />
            </package>
        </servicing>
        <settings pass="windowsPE">
            <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="
    http://schemas.microsoft.com/WMIConfig/2002/State">
                <ImageInstall>
                    <OSImage>
                        <WillShowUI>OnError</WillShowUI>
                        <InstallTo>
                            <DiskID>0</DiskID>
                            <PartitionID>1</PartitionID>
                        </InstallTo>
                        <InstallFrom>
                            <Path>.\Operating Systems\WinVistaEnt_ENSP1\Sources\install.wim</Path>
                            <MetaData>
                                <Key>/image/index</Key>
                                <Value>1</Value>
                            </MetaData>
                        </InstallFrom>
                    </OSImage>
                </ImageInstall>
                <UpgradeData>
                    <Upgrade>false</Upgrade>
                </UpgradeData>
                <Display>
                    <ColorDepth>16</ColorDepth>
                    <HorizontalResolution>1024</HorizontalResolution>
                    <RefreshRate>60</RefreshRate>
                    <VerticalResolution>768</VerticalResolution>
                </Display>
                <ComplianceCheck>
                    <DisplayReport>OnError</DisplayReport>
                </ComplianceCheck>
                <UserData>
                    <AcceptEula>true</AcceptEula>
                    <ProductKey>
                        <Key>***********</Key>
                    </ProductKey>
                </UserData>
            </component>
            <component name="Microsoft-Windows-International-Core-WinPE" 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">
                <SetupUILanguage>
                    <UILanguage>en-US</UILanguage>
                </SetupUILanguage>
                <InputLocale>0409:00000409</InputLocale>
                <SystemLocale>en-US</SystemLocale>
                <UILanguage>en-US</UILanguage>
                <UserLocale>en-US</UserLocale>
            </component>
        </settings>
        <settings pass="generalize">
            <component name="Microsoft-Windows-Shell-Setup" 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">
                <DoNotCleanTaskBar>true</DoNotCleanTaskBar>
            </component>
        </settings>
        <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">
                <Identification>
                    <Credentials>
                        <Username></Username>
                        <Domain></Domain>
                        <Password></Password>
                    </Credentials>
                    <JoinWorkgroup>IPTWORKGROUP</JoinWorkgroup>
                </Identification>
            </component>
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="
    http://schemas.microsoft.com/WMIConfig/2002/State">
                <ComputerName>*</ComputerName>
                <ProductKey>************</ProductKey>
                <RegisteredOrganization>Grupo Banco Espirito Santo</RegisteredOrganization>
                <RegisteredOwner>Grupo Banco Espirito Santo</RegisteredOwner>
                <TimeZone></TimeZone>
                <DoNotCleanTaskBar>true</DoNotCleanTaskBar>
                <Themes>
                    <DefaultThemesOff>true</DefaultThemesOff>
                </Themes>
            </component>
            <component name="Microsoft-Windows-IE-InternetExplorer" 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">
                <Home_Page></Home_Page>
                <IEWelcomeMsg>false</IEWelcomeMsg>
            </component>
            <component name="Microsoft-Windows-Deployment" 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">
                <RunSynchronous>
                    <RunSynchronousCommand wcm:action="add">
                        <Description>EnableAdmin</Description>
                        <Order>1</Order>
                        <Path>cmd /c net user Administrator /active:yes</Path>
                    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Description>EnableAdmin_ploc</Description>
                        <Order>2</Order>
                        <Path>cmd /c net user Administrator_ploc /active:yes</Path>
                    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Description>UnfilterAdministratorToken</Description>
                        <Order>3</Order>
                        <Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v FilterAdministratorToken /t REG_DWORD /d 0 /f</Path>
                    </RunSynchronousCommand>
                </RunSynchronous>
            </component>
            <component name="Microsoft-Windows-International-Core" 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">
                <InputLocale>0409:00000409</InputLocale>
                <SystemLocale>en-US</SystemLocale>
                <UILanguage>en-US</UILanguage>
                <UserLocale>en-US</UserLocale>
            </component>
            <component name="Microsoft-Windows-TapiSetup" 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">
                <TapiConfigured>0</TapiConfigured>
                <TapiUnattendLocation>
                    <AreaCode>""</AreaCode>
                    <CountryOrRegion>1</CountryOrRegion>
                    <LongDistanceAccess>9</LongDistanceAccess>
                    <OutsideAccess>9</OutsideAccess>
                    <PulseOrToneDialing>1</PulseOrToneDialing>
                    <DisableCallWaiting>""</DisableCallWaiting>
                    <InternationalCarrierCode>""</InternationalCarrierCode>
                    <LongDistanceCarrierCode>""</LongDistanceCarrierCode>
                    <Name>Default</Name>
                </TapiUnattendLocation>
            </component>
            <component name="Microsoft-Windows-SystemRestore-Main" 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">
                <DisableSR>1</DisableSR>
            </component>
        </settings>
        <settings pass="oobeSystem">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="
    http://schemas.microsoft.com/WMIConfig/2002/State">
                <UserAccounts>
                    <AdministratorPassword>
                        <Value>UABhAHMAcwB3ADAAcgBkAEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</Value>
                        <PlainText>false</PlainText>
                    </AdministratorPassword>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Description>Temp account</Description>
                            <DisplayName>Temp account</DisplayName>
                            <Group>Users</Group>
                            <Name>TempAccount</Name>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
                <AutoLogon>
                    <Enabled>true</Enabled>
                    <Username>Administrator</Username>
                    <Domain>.</Domain>
                    <Password>
                        <Value>UABhAHMAcwB3ADAAcgBkAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                        <PlainText>false</PlainText>
                    </Password>
                    <LogonCount>999</LogonCount>
                </AutoLogon>
                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>cscript.exe %SystemDrive%\MININT\Scripts\LiteTouch.wsf /start</CommandLine>
                        <Description>Lite Touch new OS</Description>
                        <Order>1</Order>
                    </SynchronousCommand>
                </FirstLogonCommands>
                <OOBE>
                    <HideEULAPage>true</HideEULAPage>
                    <NetworkLocation>Work</NetworkLocation>
                    <ProtectYourPC>1</ProtectYourPC>
                    <SkipUserOOBE>true</SkipUserOOBE>
                </OOBE>
                <RegisteredOrganization>Grupo Banco Espirito Santo</RegisteredOrganization>
                <RegisteredOwner>Grupo Banco Espirito Santo</RegisteredOwner>
                <TimeZone></TimeZone>
                <Display>
                    <HorizontalResolution>1280</HorizontalResolution>
                    <VerticalResolution>1024</VerticalResolution>
                </Display>
            </component>
            <component name="Microsoft-Windows-International-Core" 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">
                <InputLocale>0409:00000409</InputLocale>
                <SystemLocale>en-US</SystemLocale>
                <UILanguage>en-US</UILanguage>
                <UserLocale>en-US</UserLocale>
            </component>
            <component name="Microsoft-Windows-Sidebar" 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">
                <SidebarOnByDefault>false</SidebarOnByDefault>
                <SidebarVisible>false</SidebarVisible>
            </component>
        </settings>
        <settings pass="offlineServicing">
            <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" 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">
                <DriverPaths>
                    <PathAndCredentials wcm:keyValue="1" wcm:action="add">
                        <Path>C:\Drivers</Path>
                    </PathAndCredentials>
                    <PathAndCredentials wcm:keyValue="2" wcm:action="add">
                        <Path>X:\Drivers</Path>
                    </PathAndCredentials>
                </DriverPaths>
            </component>
        </settings>
        <cpiSurprisefflineImage cpiTongue Tiedource="catalog://s-sptb-dev01/distribution$/operating systems/windows vista enterprise sp1 en/sources/install_windows vista enterprise.clg" xmlns:cpi="urnTongue Tiedchemas-microsoft-com:cpi" />
    </unattend>

    Monday, November 03, 2008 12:53 PM

Answers

  • Hi Tim,

     

    Tks for your help.

     

    After some TAM talking... Smile we've figured out the problem.

     

    Was more a "no reading issue"!

     

    I've never noticed or understood the need to attach a imageunattend.xml file to my WIM file so, the default WDS installation automatically joins the machine to the domain.

     

    After I've created my xml file the issue disappeared.

     

    Again, tks for the help Tim.

     

     

    Best Regards,

    Diogo Sousa

    Wednesday, November 05, 2008 9:44 AM

All replies

  • 2 questions for you have you tried removing the unattended Join section, and where is you unattend file being placed in the image?
    Monday, November 03, 2008 5:53 PM
  • Hi Byanp,

     

    I've tried using:

     <JoinWorkgroup>IPTWORKGROUP</JoinWorkgroup>

     

    Alone..and:

     <JoinWorkgroup>IPTWORKGROUP</JoinWorkgroup>

     <JoinDomain></JoinDomain> -> with nothing on it

     

    And the behavior is the same.

     

    because i'm using MDT the process automatically copies my unattend.xml to C:\Windows\System32\Sysprep.

     

     

    Best Regards,

    Diogo Sousa

    Monday, November 03, 2008 6:48 PM
  • Hello Diogo,

     

    Please check if the value of UnsecureJoin is false in the Microsoft-Windows-UnattendedJoin component.

     

    <UnsecureJoin>false</UnsecureJoin>

     

    This string type of JoinWorkgroup and JoinDomain does not support empty elements. Do not create an empty value for these settings. Only one of these settings should be present in an answer file. If both exist in an answer file, the value for JoinDomain is used, and JoinWorkgroup is ignored.

     

    Tim Quan - MSFT

     

     

    Wednesday, November 05, 2008 7:26 AM
    Moderator
  • Hi Tim,

     

    Tks for your help.

     

    After some TAM talking... Smile we've figured out the problem.

     

    Was more a "no reading issue"!

     

    I've never noticed or understood the need to attach a imageunattend.xml file to my WIM file so, the default WDS installation automatically joins the machine to the domain.

     

    After I've created my xml file the issue disappeared.

     

    Again, tks for the help Tim.

     

     

    Best Regards,

    Diogo Sousa

    Wednesday, November 05, 2008 9:44 AM