16 Replies Latest reply on Dec 1, 2014 5:12 PM by Lakshmi Pingali

    Need Unattended Answer File For Provisioning 2012 R2

    Brian Engel

      I have a provisioning job I created for the deployment of 2012 R2. However the ISO I am using asks in the beginning if I want to deploy Core or Standard and the provisioning process halts until I manually select standard. It then continues on with my deployment until provisioning is
      done.

       

      The unattended I am using isn't getting me past this, which defeats the purpose of it being unattended. Does anyone have anything like this I can put in to BL so that I don't have to manually pick anything during this provisioning?

        • 1. Re: Need Unattended Answer File For Provisioning 2012 R2
          Bill Robinson

          Can you attach the unattend.xml that bsa is generating ?

          • 2. Re: Need Unattended Answer File For Provisioning 2012 R2
            Brian Engel

            <?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>K:\Win2k12r2\Sources\install.wim</Path>

                                    <MetaData>

                                        <Key>/image/name</Key>

                                        <Value>Windows Server 2012 SERVERDATACENTER</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>xxxxx-xxxxx-xxxxx-xxxxx-xxxxx</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="specialize">

                    <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>

                        <RegisteredOrganization>xxxxx</RegisteredOrganization>

                        <RegisteredOwner>xxxxx</RegisteredOwner>

                        <DoNotCleanTaskBar>true</DoNotCleanTaskBar>

                        <ShowWindowsLive>false</ShowWindowsLive>

                        <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>

                        <CopyProfile>false</CopyProfile>

                        <DisableAutoDaylightTimeSet>true</DisableAutoDaylightTimeSet>

                        <StartPanelOff>false</StartPanelOff>

                    </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>xxx</Domain>

                            <Password>xxxxx</Password>

                            <Username>xxxxx</Username>

                        </Credentials>

                        <JoinDomain>xxxxx</JoinDomain>

                        <UnsecureJoin>false</UnsecureJoin>

                        <DebugJoin>false</DebugJoin>

                    </Identification>

                </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">

                       <FirewallGroups />

                       <DomainProfile_EnableFirewall>false</DomainProfile_EnableFirewall>

                       <PrivateProfile_EnableFirewall>false</PrivateProfile_EnableFirewall>

                       <PublicProfile_EnableFirewall>false</PublicProfile_EnableFirewall>

                       <PrivateProfile_DisableNotifications>true</PrivateProfile_DisableNotifications>

                    </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>PROV_WIN_ADMIN_PASSWORD</Value>

                                <PlainText>true</PlainText>

                            </AdministratorPassword>

                        </UserAccounts>

                        <AutoLogon>

                            <Enabled>true</Enabled>

                            <Username>Administrator</Username>

                            <Password>

                                <Value>PROV_WIN_ADMIN_PASSWORD</Value>

                                <PlainText>true</PlainText>

                            </Password>

                            <LogonCount>3</LogonCount>

                        </AutoLogon>

                        <Display>

                            <ColorDepth>32</ColorDepth>

                            <HorizontalResolution>1024</HorizontalResolution>

                            <RefreshRate>60</RefreshRate>

                            <VerticalResolution>768</VerticalResolution>

                        </Display>

                        <FirstLogonCommands>

                            <SynchronousCommand wcm:action="add" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">

                                <CommandLine>c:\BLProv\wrapper.bat</CommandLine>

                                <Description>Lite Touch new OS</Description>

                                <Order>1</Order>

                            </SynchronousCommand>

                        </FirstLogonCommands>          

                        <OOBE>

                            <HideEULAPage>true</HideEULAPage>

                            <NetworkLocation>Other</NetworkLocation>

                            <ProtectYourPC>3</ProtectYourPC>

                            <SkipUserOOBE>true</SkipUserOOBE>

                            <SkipMachineOOBE>true</SkipMachineOOBE>

                        </OOBE>

                        <RegisteredOrganization>xxxx</RegisteredOrganization>

                        <RegisteredOwner>xxxx</RegisteredOwner>

                        <TimeZone>Central Standard Time</TimeZone>       

                    </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" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">

                                <Path>C:\Drivers</Path>

                            </PathAndCredentials>

                            <PathAndCredentials wcm:keyValue="2" wcm:action="add" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">

                                <Path>X:\Drivers</Path>

                            </PathAndCredentials>

                        </DriverPaths>

                    </component>

                </settings>

              <cpi:offlineImage cpi:source="wim:K:\Win2k12r2\sources\install.wim#Windows Server 2012 SERVERDATACENTER" xmlns:cpi="urn:schemas-microsoft-com:cpi" />

            </unattend>

            • 3. Re: Need Unattended Answer File For Provisioning 2012 R2
              Joe Piotrowski

              FYI I scrubbed out any company specific data I noticed in your XML.

              • 5. Re: Need Unattended Answer File For Provisioning 2012 R2
                Mike Jones

                It seems that you may have used a Datacentre system package, this information should come be added to the unattend.xml automatically from the system package type.

                 

                To select the Standard edition it should look like the entry below

                 

                                        <Path>K:\w2k12\Sources\install.wim</Path>

                                        <MetaData>

                                            <Key>/image/name</Key>

                                            <Value>Windows Server 2012 SERVERSTANDARD</Value>

                                        </MetaData>

                • 6. Re: Need Unattended Answer File For Provisioning 2012 R2
                  Brian Engel

                  I apologize for my misuse of the word standard . I am installing 2012 R2 Data Center edition. What's happening is it's stopping me during the install and asking me if I want the non-gui or gui version of the OS.

                  • 7. Re: Need Unattended Answer File For Provisioning 2012 R2
                    Mike Jones

                    With Windows 2012 on BSA 8.2 the only differences in the XML file are shown below depending on what you select in the OS components scree of the system package.

                     

                    I suspect that Windows 2012 R2 needs another line that isn't being provided automatically

                     

                     

                    <cpi:offlineImage xmlns:cpi="urn:schemas-microsoft-com:cpi" cpi:source="wim:K:\w2k12\sources\install.wim#Windows Server 2012 SERVERSTANDARD"/>

                     

                     

                    <cpi:offlineImage xmlns:cpi="urn:schemas-microsoft-com:cpi" cpi:source="wim:K:\w2k12\sources\install.wim#Windows Server 2012 SERVERSTANDARDCORE"/>

                    • 8. Re: Need Unattended Answer File For Provisioning 2012 R2
                      Bill Robinson

                      What version of bsa is this ?

                      • 10. Re: Need Unattended Answer File For Provisioning 2012 R2
                        Bill Robinson

                        I don’t believe we have 2012 R2 support in 8.3.00 – iirc it was added in 8.3.02 or 8.3.03.  that version should create the correct xml.

                        • 11. Re: Need Unattended Answer File For Provisioning 2012 R2
                          Robert Stinnett

                          Actually, I think it wasn't introduced until 8.5 if I recall correctly.

                          • 13. Re: Need Unattended Answer File For Provisioning 2012 R2
                            Robert Stinnett

                            That's agent and infrastructure support; Brian is trying to provision a Windows 2012 R2 box.
                              Also, keep in mind that R2 is a slightly different beast that Windows 2012.

                             

                            That functionality was not added until 8.5.... https://docs.bmc.com/docs/display/public/bsa85/OS+support