Quantcast
Viewing all articles
Browse latest Browse all 2818

WDS Client Naming Policy with image unattend mode problem

I have created a standard Windows 7 Pro 64-bit PC for my company with all our applications installed and configured.  I used SYSPREP to generalize it and then used PXEBoot to capture this image to our WDS Server (which is the PDC).  I used WAIK to create the two required answer files, one for the WDS server and the PXE boot stage of deployment and another linked to the image that sets the region/keyboard/time zone and other simple settings.

To test I've setup up Oracle VirtualBox and PXE booted it.  The PXE part works fine and the correct image begins to deploy.  However when using the image's answer file I get a random computer name generated and it fails to join the domain, when I don't use the image answer file I have to sit at the PC and set the region/keyboard/timezone etc settings from prompts on the screen but the virtual PC does join the domain and does pick up the correct name!

The AD DS properties tab shows this as 'Client Naming Policy' FBCLIENT%02# which is correct and results in PCs called FBCLIENT01 FBCLIENT02 etc when NOT using the image answer file.

How can I modify my image answer file so that the PC is joined to the domain and picks up the correct generated name in sequence?



Here's my image answer file...

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="specialize">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <ComputerName>*</ComputerName>
            <ProductKey>JXTG8-4MY4D-TXJQB-M492H-J4G77</ProductKey>
            <RegisteredOrganization>Fiona Bruce LLP</RegisteredOrganization>
            <RegisteredOwner>Fiona Bruce LLP</RegisteredOwner>
            <ShowWindowsLive>false</ShowWindowsLive>
            <TimeZone>GMT Standard Time</TimeZone>
        </component>
        <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" 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>fionabruce</Domain>
                    <Password>**REMOVED**</Password>
                    <Username>**Admin_User**</Username>
                </Credentials>
                <JoinDomain>fionabruce.local</JoinDomain>
                <UnsecureJoin>true</UnsecureJoin>
            </Identification>
        </component>
        <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" 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>Enable local admin</Description>
                    <Order>1</Order>
                    <Path>net user LocalAdmin /active&gt;yes</Path>
                </RunSynchronousCommand>
            </RunSynchronous>
        </component>
        <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <SkipAutoActivation>true</SkipAutoActivation>
        </component>
    </settings>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" 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>en-GB</InputLocale>
            <SystemLocale>en-GB</SystemLocale>
            <UILanguage>en-GB</UILanguage>
            <UserLocale>en-GB</UserLocale>
        </component>
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <OOBE>
                <HideEULAPage>false</HideEULAPage>
                <HideWirelessSetupInOOBE>false</HideWirelessSetupInOOBE>
                <NetworkLocation>Work</NetworkLocation>
                <ProtectYourPC>1</ProtectYourPC>
            </OOBE>
            <UserAccounts>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Password>
                            <Value>QQBkAG0AaQBuADIAMAAxADQAUABhAHMAcwB3AG8AcgBkAA==</Value>
                            <PlainText>false</PlainText>
                        </Password>
                        <Description>Local Admin</Description>
                        <DisplayName>LocalAdmin</DisplayName>
                        <Group>Administrators</Group>
                        <Name>LocalAdmin</Name>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
            <AutoLogon>
                <Password>
                    <Value>QQBkAG0AaQBuADIAMAAxADQAUABhAHMAcwB3AG8AcgBkAA==</Value>
                    <PlainText>false</PlainText>
                </Password>
                <Enabled>true</Enabled>
                <LogonCount>2</LogonCount>
                <Username>LocalAdmin</Username>
            </AutoLogon>
            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <Order>1</Order>
                    <CommandLine>cscript //b c:\windows\system32\slmgr.vbs /ipk JXTG8-4MY4D-TXJQB-M492H-J4G77</CommandLine>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Order>2</Order>
                    <RequiresUserInput>false</RequiresUserInput>
                    <CommandLine>cscript //b c:\windows\system32\slmgr.vbs /ato</CommandLine>
                </SynchronousCommand>
            </FirstLogonCommands>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim://fbserver01/masters/autoinstall/win7pro64bit.wim#Win7Pro64Bit" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>



Phil Tyler


Viewing all articles
Browse latest Browse all 2818

Trending Articles