none
MDT 2010 - Updating the image, issues with unattend.xml

    คำถาม

  • I have two deployment shares, one for image capture and one for enterprise deployment.  I edited the unattend.xml file to push down some extra settings like default desktop background, custom support info and taskbar pinned items.  For the first image, everything worked fine. 

    Now i have updated the image, copied it back to the deployment share in the same folder with the same name as the previous image.  Almost all of the settings are still working, except for the desktop background.  It seems to me that the unattend.xml is attached to the task sequence, so why does changing the WIM file matter?

    I've found lots of great documentation on building your environment and making your first image, but nothing after that.  I've always used Ghost and my own custon coding but the company I work for now wants to use MDT.  I like it, and I am trying to get into it, but the image management is making my eye twitch.

    Thanks is advance,

    Scott



    • แก้ไขโดย ScottHeath 19 มีนาคม 2555 21:32
    19 มีนาคม 2555 21:17

ตอบทั้งหมด

  • As long as the image has the same name (case sensitive) you can replace the file and MDT will happily pick it up.

    As for your settings being lost:

    1. Make sure you do Not have the copyprofile value in the Unattend.xml you use to create the reference image

    2. Make sure you Do have the copyprofile set to true in the Unattend.xml you use to deploy the image.

    Unfortfunately Microsoft's documentation around copyprofile is slightly incorrect, see this article.

    How CopyProfile really works in Windows 7 Deployments
    http://www.deploymentresearch.com/Blog/tabid/62/EntryId/43/How-CopyProfile-really-works-in-Windows-7-Deployments.aspx

    / Johan


    Regards / Johan Arwidmark Twitter: @jarwidmark Blog: http://www.deploymentresearch.com FB: www.facebook.com/deploymentresearch

    20 มีนาคม 2555 0:32
    ผู้ดูแล
  • Johan,

    Thanks for your reply.  I will recapture the image after verifying copyprofile is not enabled and then try deploying it again.

    BTW, I bought your Deployment Fundamentals book.  It was more informative than the very expensive consultant I had the displeasure of spending a week with.  : )

    Regards,

    Scott

    21 มีนาคม 2555 15:16
  • Johan,

    OK, sorry for the slow response.  I verifed that copyprofile isn't in my capture unattend.xml and that it is in my deployment unattend.xml.  Here's the content of the deployment unattend.xml

    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="windowsPE">
            <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" 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\SomeCompanyWin7Core\SomeCompanyWin7Core.wim</Path>
                            <MetaData>
                                <Key>/image/index</Key>
                                <Value>1</Value>
                            </MetaData>
                        </InstallFrom>
                    </OSImage>
                </ImageInstall>
                <UpgradeData>
                    <Upgrade>false</Upgrade>
                </UpgradeData>
                <ComplianceCheck>
                    <DisplayReport>OnError</DisplayReport>
                </ComplianceCheck>
                <UserData>
                    <AcceptEula>true</AcceptEula>
                    <ProductKey>
                        <Key></Key>
                    </ProductKey>
                </UserData>
            </component>
            <component name="Microsoft-Windows-International-Core-WinPE" 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">
                <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="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">
                <DoNotCleanTaskBar>true</DoNotCleanTaskBar>
            </component>
        </settings>
        <settings pass="specialize">
            <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
                <Identification>
                    <Credentials>
                        <Username></Username>
                        <Domain></Domain>
                        <Password></Password>
                    </Credentials>
                    <JoinDomain></JoinDomain>
                    <JoinWorkgroup></JoinWorkgroup>
                    <MachineObjectOU></MachineObjectOU>
                </Identification>
            </component>
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
                <ComputerName></ComputerName>
                <ProductKey></ProductKey>
                <RegisteredOrganization>The SomeCompany Companies</RegisteredOrganization>
                <RegisteredOwner>SomeCompany Employee</RegisteredOwner>
                <DoNotCleanTaskBar>true</DoNotCleanTaskBar>
                <TimeZone>Central Standard Time</TimeZone>
                <CopyProfile>true</CopyProfile>
            </component>
            <component name="Microsoft-Windows-IE-InternetExplorer" 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">
                <Home_Page>http://www.SomeCompanyco.com/employees.htm</Home_Page>
                <IEWelcomeMsg>false</IEWelcomeMsg>
                <Help_Page>http://helpdesk.SomeCompanyco.com</Help_Page>
                <DisableFirstRunWizard>true</DisableFirstRunWizard>
                <DisableOOBAccelerators>true</DisableOOBAccelerators>
                <DisableWelcomePage>true</DisableWelcomePage>
                <SuggestedSitesEnabled>false</SuggestedSitesEnabled>
                <CompanyName>SomeCompany Company</CompanyName>
            </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>EnableAdmin</Description>
                        <Order>1</Order>
                        <Path>cmd /c net user Administrator /active:yes</Path>
                    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Description>UnfilterAdministratorToken</Description>
                        <Order>2</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="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>0409:00000409</InputLocale>
                <SystemLocale>en-US</SystemLocale>
                <UILanguage>en-US</UILanguage>
                <UserLocale>en-US</UserLocale>
            </component>
            <component name="Microsoft-Windows-TapiSetup" 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">
                <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="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">
                <DisableSR>1</DisableSR>
            </component>
            <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" 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">
                <fDenyTSConnections>false</fDenyTSConnections>
            </component>
            <component name="Networking-MPSSVC-Svc" 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">
                <PrivateProfile_EnableFirewall>false</PrivateProfile_EnableFirewall>
                <DomainProfile_EnableFirewall>false</DomainProfile_EnableFirewall>
                <PublicProfile_EnableFirewall>false</PublicProfile_EnableFirewall>
            </component>
        </settings>
        <settings pass="oobeSystem">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
                <UserAccounts>
                    <AdministratorPassword>
                        <Value>dAAwAHQAYQBsAHMAaAAwAHcAQQBkAG0AaQBuAGkAcwB0AHIAYQB0AG8AcgBQAGEAcwBzAHcAbwByAGQA</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>dAAwAHQAYQBsAHMAaAAwAHcAUABhAHMAcwB3AG8AcgBkAA==</Value>
                        <PlainText>false</PlainText>
                    </Password>
                    <LogonCount>999</LogonCount>
                </AutoLogon>
                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>cscript.exe C:\MININT\Scripts\LiteTouch.wsf /start</CommandLine>
                        <Description>Lite Touch new OS</Description>
                        <Order>1</Order>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>cscript.exe D:\MININT\Scripts\LiteTouch.wsf /start</CommandLine>
                        <Description>Lite Touch new OS</Description>
                        <Order>2</Order>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>cscript.exe E:\MININT\Scripts\LiteTouch.wsf /start</CommandLine>
                        <Description>Lite Touch new OS</Description>
                        <Order>3</Order>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>cscript.exe F:\MININT\Scripts\LiteTouch.wsf /start</CommandLine>
                        <Description>Lite Touch new OS</Description>
                        <Order>4</Order>
                    </SynchronousCommand>
                </FirstLogonCommands>
                <OOBE>
                    <HideEULAPage>true</HideEULAPage>
                    <NetworkLocation>Work</NetworkLocation>
                    <ProtectYourPC>1</ProtectYourPC>
                    <SkipUserOOBE>true</SkipUserOOBE>
                </OOBE>
                <RegisteredOrganization>The SomeCompany Companies</RegisteredOrganization>
                <RegisteredOwner>SomeCompany Employee</RegisteredOwner>
                <TimeZone></TimeZone>
                <OEMInformation>
                    <Logo>c:\windows\system32\oemlogo.bmp</Logo>
                    <Manufacturer>SomeCompany</Manufacturer>
                    <Model>Windows 7 Core Image v2012.2</Model>
                    <SupportPhone>SomeCompany Help Desk: 877-670-9191</SupportPhone>
                    <SupportURL>http://helpdesk.SomeCompanyco.com</SupportURL>
                </OEMInformation>
                <TaskbarLinks>
                    <Link0>%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Word 2010.lnk</Link0>
                    <Link1>%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Excel 2010.lnk</Link1>
                    <Link2>%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft PowerPoint 2010.lnk</Link2>
                </TaskbarLinks>
                <Themes>
                    <DesktopBackground>c:\windows\system32\SomeCompany1440x900.jpg</DesktopBackground>
                </Themes>
            </component>
            <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>0409:00000409</InputLocale>
                <SystemLocale>en-US</SystemLocale>
                <UILanguage>en-US</UILanguage>
                <UserLocale>en-US</UserLocale>
            </component>
        </settings>
        <settings pass="offlineServicing">
            <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" 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">
                <DriverPaths>
                    <PathAndCredentials wcm:keyValue="1" wcm:action="add">
                        <Path>\Drivers</Path>
                    </PathAndCredentials>
                </DriverPaths>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="catalog://daltfcwds01/deploymentshare/operating systems/SomeCompanywin7core/SomeCompanywin7core_upd_prd_win7ddrive.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

    22 มีนาคม 2555 20:56
  • hmm, I remember someone reporting a bug around either the background image or themes not applying corrcetly even when copyprofile has been correctly applied... Let me see if I can find that info again...

    / Johan


    Regards / Johan Arwidmark Twitter: @jarwidmark Blog: http://www.deploymentresearch.com FB: www.facebook.com/deploymentresearch

    23 มีนาคม 2555 1:26
    ผู้ดูแล
  • Johan,

    Thanks for the help.  This has been bugging me for weeks.

    23 มีนาคม 2555 13:50
  • for the wallpaper issue :-

    You need to have wallpaper & theme both set on your answer file with the UNC path of the image which you want to set as the wallpaper.

    It works with copy profile set.

    Thanks

    Pranay.

    24 มีนาคม 2555 7:06
  • The comment from Pranay is unfortunately not correct, there is no need to specify the wallpaper in the answer file.

    I did some additional tests today, and it didn't matter if I stored the background image inside or outside the admin profile, it still gets copied as long as the copyprofile is set to true. Assuming its the unattend.xml file used when deploying the image (and not the unattend.xml used when sysprep/capturing the image). I also tried one of the default wallpapers, and that worked fine too.

    Check your setupact.log file in the C:\Windows\Panther\UnattendGC folder after deploying the image, there should be a few lines saying:

    2012-04-07 15:51:02, Info                         [Shell Unattend] Running 'specialize' pass
    2012-04-07 15:51:02, Info                         [Shell Unattend] ComputerName set to PC00081
    2012-04-07 15:51:02, Info                         [Shell Unattend] TimeZone: Time zone set to 'Pacific Standard Time'
    2012-04-07 15:51:05, Info                         [Shell Unattend] CopyProfileDirectory from C:\Users\Administrator succeeded.
    2012-04-07 15:51:05, Info                         [Shell Unattend] CopyProfile succeeded

    / Johan


    Regards / Johan Arwidmark Twitter: @jarwidmark Blog: http://www.deploymentresearch.com FB: www.facebook.com/deploymentresearch

    7 เมษายน 2555 23:39
    ผู้ดูแล