8 Replies Latest reply on Oct 23, 2011 6:01 PM by Adam Bowen

    Additional Unattended Entries

    Geoffrey Langfield

      When editing the system package to allow for a third dns & wins entries doesn't work.  Here's the node example that I replace:  For some reason this section is getting skipped during the unattended installation. 

       

      <DNSServerSearchOrder>
      <IpAddress wcm:action="add" wcm:keyValue="1">XXX.XX.XX.X</IpAddress>
      <IpAddress wcm:action="add" wcm:keyValue="2">XXX.XX.XX.X</IpAddress>
      </DNSServerSearchOrder>

      <NameServerList>
      <IpAddress wcm:action="add" wcm:keyValue="1">XXX.XX.XX.X</IpAddress>
      <IpAddress wcm:action="add" wcm:keyValue="2">XXX.XX.XX.X</IpAddress>
      </NameServerList>

        • 1. Additional Unattended Entries

          Which version of Bladelogic is this ?

          Also, are you able to grab the actual unattended xml used for the provisioing, You should be able to get it on the provisioned box, Check  if it has this entries,

          Also, Did you modify  the System Package after the job was already created ?

          Or you did it before you created the Prov job ?

          It can be the case, where the new changes to the system package are not reflected in already existing provisioning jobs.  This is because the Prov job creates its own private copy of system package behind the scenes .

           

          Thanks,

          Rohit

          • 2. Additional Unattended Entries
            Geoffrey Langfield

            I am running version 8.1.02.233.  I am creating the job after I make the modifications.  The following XML will work (note I am changing media to hyper V edition) whether I edit the xml using "customize" or the additional unattned section.  One I start messing w/ the DNS section, it doesn't work.

             

            <?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:\Windows\200864SP2\Sources\install.wim</Path>

                                    <MetaData>

                                        <Key>/image/name</Key>

                                        <Value>Windows Longhorn SERVERSTANDARDV</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>xxxx-xxxx-xxxx-xxxx</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>??HOST??</ComputerName>

                        <RegisteredOrganization>Company Name</RegisteredOrganization>

                        <RegisteredOwner>Company Name</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>

                        <JoinWorkgroup>WORKGROUP</JoinWorkgroup>

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

              BL_SERVER_IP_CONFIGURATION_DATA

              <component name="Microsoft-Windows-DNS-Client" 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">

                 <Interfaces>

                     <Interface wcm:action="add">

                         <DNSServerSearchOrder>

                             <IpAddress wcm:action="add" wcm:keyValue="1">??DNS??</IpAddress>

             

                         </DNSServerSearchOrder>

                         <EnableAdapterDomainNameRegistration>true</EnableAdapterDomainNameRegistration>

                         <Identifier>Local Area Connection</Identifier>

                     </Interface>

                 </Interfaces>

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

                                <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>Company Name</RegisteredOrganization>

                        <RegisteredOwner>Company Name</RegisteredOwner>

                        <TimeZone>Eastern 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">

                                <Path>C:\Drivers</Path>

                            </PathAndCredentials>

                            <PathAndCredentials wcm:keyValue="2" wcm:action="add">

                                <Path>X:\Drivers</Path>

                            </PathAndCredentials>

                        </DriverPaths>

                    </component>

                </settings>

              <cpi:offlineImage cpi:source="wim:K:\Windows\200864SP2\sources\install.wim#Windows Longhorn SERVERSTANDARDV” xmlns:cpi="urn:schemas-microsoft-com:cpi" />

            </unattend>

            • 3. Additional Unattended Entries
              Bill Robinson

              does windows unattend support specifying more that 2 dns servers?

              • 4. Additional Unattended Entries
                Geoffrey Langfield

                Figured out my issue, myself.  I wasn't calling the proper commonent, so it was an issue with how I was formatting my changes.  I used the Unattend.chm help me file which is inluded in the WAIK installation.

                • 5. Additional Unattended Entries
                  Geoffrey Langfield

                  Forgot to include a sample of the code.

                   

                    <DNSDomain>fabrikam.com</DNSDomain>

                     <DNSSuffixSearchOrder>

                        <DomainName wcm:action="add" wcm:keyValue="1">server1.fabrikam.com</DomainName>

                        <DomainName wcm:action="add" wcm:keyValue="2">fabrikam.com</DomainName>

                     </DNSSuffixSearchOrder>

                     <UseDomainNameDevolution>true</UseDomainNameDevolution>

                     <Interfaces>

                        <Interface wcm:action="add">

                           <Identifier>Local Area Connection</Identifier>

                           <DNSDomain>fabrikam.com</DNSDomain>

                           <DNSServerSearchOrder>

                              <IpAddress wcm:action="add" wcm:keyValue="1">192.168.1.1</IpAddress>

                              <IpAddress wcm:action="add" wcm:keyValue="2">192.168.1.2</IpAddress>

                           </DNSServerSearchOrder>

                           <EnableAdapterDomainNameRegistration>true</EnableAdapterDomainNameRegistration>

                           <DisableDynamicUpdate>false</DisableDynamicUpdate>

                        </Interface>

                        <Interface wcm:action="add">

                           <Identifier>Local Area Connection 2</Identifier>

                           <DNSDomain>fabrikam.com</DNSDomain>

                           <DNSServerSearchOrder>

                              <IpAddress wcm:action="add" wcm:keyValue="1">192.168.1.1</IpAddress>

                              <IpAddress wcm:action="add" wcm:keyValue="2">2001:4898:28:4:213:20ff:fe16:3e96</IpAddress>

                           </DNSServerSearchOrder>

                           <EnableAdapterDomainNameRegistration>true</EnableAdapterDomainNameRegistration>

                          <DisableDynamicUpdate>false</DisableDynamicUpdate>

                        </Interface>

                     </Interfaces>

                  • 6. Additional Unattended Entries
                    Geoffrey Langfield

                    Windows does support three DNS entries. 

                    • 7. Re: Additional Unattended Entries
                      Bill Robinson

                      Does it support adding three via the unattend.xml ?  have you built a box using the unattend.xml before w/ 3 dns servers?

                       

                      For example – redhat supports having more than two dns servers but kickstart had a defect where the 2nd dns server was not being added, even if specified in the kickstart file.  maybe there is something similar happening here ?

                      • 8. Re: Additional Unattended Entries

                        If not, this should be easy enough to do via an netsh script as a post provisioning job.