1 2 Previous Next 21 Replies Latest reply on Oct 19, 2010 8:35 AM by 1EarEngineer

    Beyond frustrated with HII

    Apprentice

      I will start out by saying I have received great help from several individuals on this website.  I am still running into problems with LD9 SP1 and setting up HII.

       

      Here are the steps I have taken:

       

      Install Win 7 on a Optiplex 780

      (according to instructions) Run Sysprep Audit and then install apps and make configuration changes to OS if needed

      Once that is done, I shut down the workstation and create an image using WinPE

       

      I create the script to Deploy image using HII and Sysprep

      I set all the sysprep options and save script

      Add to pxe menu and try to deploy

       

      First problem - It does not set the time zone like I asked it to and I have no way of knowing if it used the MAK key I entered

      Second problem - This image cannot be deployed to any other model computer - as soon as it boots, it restarts

       

      Am I missing something here? I have browsed through all the help files for LD9, this site and anything else I could get my hands on.  Maybe I just don't understand the whole sysprep process or maybe need to make modifications to the XML file because LANDesk is not creating it properly.

       

      Let's start from here and see where the discussion leads.  Please understand, I don't know what else I can read to understand this.  I wouldn't think this process is so complicated.  However, just from following the LD9 Best Known Method for Deploying Win 7 step by step is not working.

       

      What am I doing wrong?  I wish our support contract was renewed so I could actually speak to someone about this.

        • 1. Re: Beyond frustrated with HII
          Apprentice

          Here is a copy of the XML file that landesk created.  Maybe someone can make sense of this.  I'm about ready to just give up and have single images for each model LOL...

           

          <?xml version="1.0" encoding="utf-8"?>
          <unattend>
            <settings pass="auditSystem">
              <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:\windows\LDDriverStore</Path>
                  </PathAndCredentials>
                </DriverPaths>
              </component>
              <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86">
                <UserAccounts>
                  <AdministratorPassword>
                    <PlainText>true</PlainText>
                    <Value></Value>
                  </AdministratorPassword>
                </UserAccounts>
                <AutoLogon>
                  <Enabled>true</Enabled>
                  <Username>Administrator</Username>
                  <Password>
                    <PlainText>true</PlainText>
                    <Value></Value>
                  </Password>
                  <LogonCount>1</LogonCount>
                </AutoLogon>
              </component>
            </settings>
            <settings pass="auditUser">
              <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">
                    <Order>1</Order>
                    <Path>c:\windows\System32\sysprep\sysprep.exe /oobe /generalize /reboot </Path>
                  </RunSynchronousCommand>
                </RunSynchronous>
              </component>
            </settings>
            <settings pass="generalize">
              <component name="Microsoft-Windows-PnpSysprep" 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">
                <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
              </component>
            </settings>
            <settings pass="oobeSystem">
              <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86">
                <OOBE>
                  <HideEULAPage>true</HideEULAPage>
                  <ProtectYourPC>1</ProtectYourPC>
                  <SkipMachineOOBE>true</SkipMachineOOBE>
                  <SkipUserOOBE>true</SkipUserOOBE>
                </OOBE>
                <ProductKey>xxxxx-xxxxx-xxxxx-xxxxx-xxxxx</ProductKey>
                <RegisteredOwner></RegisteredOwner>
                <RegisteredOrganization></RegisteredOrganization>
                <TimeZone>(UTC-05:00) Eastern Time (US &amp; Canada)</TimeZone>
                <UserAccounts>
                  <AdministratorPassword>
                    <PlainText>true</PlainText>
                    <Value></Value>
                  </AdministratorPassword>
                </UserAccounts>
                <AutoLogon>
                  <Enabled>true</Enabled>
                  <Username>Administrator</Username>
                  <Password>
                    <PlainText>true</PlainText>
                    <Value></Value>
                  </Password>
                  <LogonCount>1</LogonCount>
                </AutoLogon>
                <FirstLogonCommands>
                  <SynchronousCommand>
                    <CommandLine>c:\ldsleep.exe 30</CommandLine>
                    <Description></Description>
                    <Order>1</Order>
                  </SynchronousCommand>
                  <SynchronousCommand>
                    <CommandLine>cmd /q /c del /q c:\ldsleep.exe</CommandLine>
                    <Description></Description>
                    <Order>2</Order>
                  </SynchronousCommand>
                  <SynchronousCommand>
                    <CommandLine>cmd /q /c del /q c:\unattend.xml</CommandLine>
                    <Description></Description>
                    <Order>3</Order>
                  </SynchronousCommand>
                  <SynchronousCommand>
                    <CommandLine>net use \\landesk01\ldlogon XXXXXXXXX /u:aero\svc_landesk</CommandLine>
                    <Description></Description>
                    <Order>4</Order>
                  </SynchronousCommand>
                  <SynchronousCommand>
                    <CommandLine>cmd /q /c \\landesk01\ldlogon\agent_with_Status.exe</CommandLine>
                    <Description></Description>
                    <Order>5</Order>
                  </SynchronousCommand>
                  <SynchronousCommand>
                    <CommandLine>net use \\landesk01\ldlogon /d /y</CommandLine>
                    <Description></Description>
                    <Order>6</Order>
                  </SynchronousCommand>
                  <SynchronousCommand>
                    <CommandLine>cmd /q /c del /q c:\ldiscan.cfg</CommandLine>
                    <Description></Description>
                    <Order>7</Order>
                  </SynchronousCommand>
                </FirstLogonCommands>
              </component>
            </settings>
            <settings pass="specialize">
              <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86">
                <ComputerName>%COMPUTERNAME%</ComputerName>
              </component>
              <component name="Microsoft-Windows-UnattendedJoin" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86">
                <Identification>
                  <Credentials>
                    <Domain></Domain>
                    <Username></Username>
                    <Password></Password>
                  </Credentials>
                  <JoinWorkgroup>WORKGROUP</JoinWorkgroup>
                </Identification>
              </component>
            </settings>
          </unattend>

          • 2. Re: Beyond frustrated with HII
            Expert

            If the image installs and then immediately starts a reboot cycle, that could mean you need to add the drivers for the raid/scsi/HD controller to your HII drivers for the other models.

             

            I have read several forum questions all over the net about setting the time zone and product key for windows 7 and it looks like a common problem in the OOBE section. Sorry, I don't have a solution for you at this point.

            • 3. Re: Beyond frustrated with HII
              Apprentice

              This is a good start - thanks for the response.  I will add the hard drive controllers to the driver library and see if that fixes it.  I will try to resolve this issue first and then tackle the time zone and key issue.  There just HAS to be someone else who has encountered this same issue.

              • 4. Re: Beyond frustrated with HII
                Expert

                What switches are you running when you sysprep it?

                • 5. Re: Beyond frustrated with HII
                  Apprentice

                  I do not run it from a command line - From Windows 7 - c:\windows\system32\sysprep\sysprep.exe

                   

                  I select Audit, I don't check Generalize and click Shutdown.

                   

                  Once the computer has shut down I create the image....

                   

                  On a side note - just got a call from a tech buddy of mine and he said LANDesk is a little qwerky when it comes to this part, you actually have to run sysprep pointing to the XML that has all the information that you want to use "time zone settings, license key, etc"...  So I am going to give that a shot and see what happens. You would think that LANDesk would be smart enough to know that when you create the deployment script that it will use those settings you specified in the SYSPREP options (sighs)

                  • 6. Re: Beyond frustrated with HII
                    EMiranda Expert

                    mikenewland wrote:

                     

                    On a side note - just got a call from a tech buddy of mine and he said LANDesk is a little qwerky when it comes to this part, you actually have to run sysprep pointing to the XML that has all the information that you want to use "time zone settings, license key, etc"...  So I am going to give that a shot and see what happens. You would think that LANDesk would be smart enough to know that when you create the deployment script that it will use those settings you specified in the SYSPREP options (sighs)

                     

                    When you specify a switch to point to your own xml file for sysprep, it basically takes all your settings and copies them to  c:\windows\panther\unattend.xml

                    If you specify your own .xml AND specify a sysprep in OSD in LANDesk, then the LANDesk one would override whatever you point to.  It would be best to use one or the other.

                     

                    As far as the Time Zone issue.  The format in your sysprep looks wrong.  I don't know if you manually put that in there or if LANDesk is injected those values.

                     

                     

                    But your sysprep shows

                     

                     

                    <TimeZone>(UTC-05:00) Eastern Time (US &amp; Canada)</TimeZone>
                    

                     

                    it should be

                     

                     

                    <TimeZone>Eastern Standard Time</TimeZone>
                    
                    • 7. Re: Beyond frustrated with HII
                      Apprentice

                      Okay.  I installed Windows 7 and before I did anything else I ran sysprep as follows:

                       

                      c:\windows\system32\sysprep\sysprep /audit /shutdown /unattend:w7pro.xml

                       

                      It prepped the machine and shut down. I restarted the computer and it still does not change the time zone, I have no clue if it set the MAK key as I stated in the XML...but it did install the landesk agent.

                       

                      I am beginning to think that SYSPREP is a load of crap and doesn't work worth a crap!  In 12 years of IT, I have NEVER dealt with something as awful as this so called "handy" tool.

                      • 8. Re: Beyond frustrated with HII
                        EMiranda Expert

                        Here is a list of the Time Zones and the format that need to be in:

                         

                        http://technet.microsoft.com/en-us/library/ff715394%28WS.10%29.aspx

                         

                         

                        Also, for additional info on everything that sysprep is doing there are 3 log files that detail pretty much everything it does:

                         

                         

                        %WINDIR%\System32\Sysprep\Panther = Generalize

                        %WINDIR%\Panther = Specialize

                        %WINDIR%\Panther\Unattendgc = Unattended Windows Setup actions

                        • 9. Re: Beyond frustrated with HII
                          Apprentice

                          Okay thanks, will take a look!

                          • 10. Re: Beyond frustrated with HII
                            LANDeskWizrd SSMMVPGroup

                            I haven't experienced this issue but I have imaged roughtly 1000 machines of that same model with Win 7 using HII. I dont believe the time zone is wrong since that is exactly what I am using on mine and it is working just fine.  My process is putting the machine in Audit mode and then doing all the necessary configuration and then just pulling the image, which sounds just like what you are doing. I am not running sysprep with the xml path. Below is what my xml looks like for reference. Btw, I built my xml using the Windows System Image Manager.

                             

                            <?xml version="1.0" encoding="utf-8"?>
                            <unattend xmlns="urn:schemas-microsoft-com:unattend">
                              <settings pass="auditSystem">
                                <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:\windows\LDDriverStore</Path>
                                    </PathAndCredentials>
                                  </DriverPaths>
                                </component>
                                <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                                  <UserAccounts>
                                    <AdministratorPassword>
                                      <PlainText>true</PlainText>
                                      <Value>************</Value>
                                    </AdministratorPassword>
                                    <LocalAccounts>
                                           <LocalAccount wcm:action="add">
                                               <Password>
                                                   <Value>************</Value>
                                                   <PlainText>true</PlainText>
                                               </Password>
                                                   <DisplayName>*************</DisplayName>
                                                   <Name>************</Name>
                                                   <Group>Administrators</Group>
                                           </LocalAccount>
                                           <LocalAccount wcm:action="add">
                                               <Password>
                                                   <Value>************</Value>
                                                   <PlainText>true</PlainText>
                                               </Password>
                                                   <DisplayName>Distop</DisplayName>
                                                   <Group>Administrators</Group>
                                                   <Name>************</Name>
                                           </LocalAccount>
                                     </LocalAccounts>
                                  </UserAccounts>
                                  <AutoLogon>
                                    <Enabled>true</Enabled>
                                    <Username>Administrator</Username>
                                    <Password>
                                      <PlainText>true</PlainText>
                                      <Value>************</Value>
                                    </Password>
                                    <LogonCount>1</LogonCount>
                                  </AutoLogon>
                                </component>
                              </settings>
                              <settings pass="auditUser">
                                <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">
                                      <Order>1</Order>
                                      <Path>c:\windows\System32\sysprep\sysprep.exe /oobe /generalize /reboot </Path>
                                    </RunSynchronousCommand>
                                  </RunSynchronous>
                                </component>
                              </settings>
                              <settings pass="generalize">
                                <component name="Microsoft-Windows-PnpSysprep" 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">
                                  <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
                                </component>
                              </settings>
                              <settings pass="oobeSystem">
                                <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86">
                                  <OOBE>
                                    <HideEULAPage>true</HideEULAPage>
                                    <ProtectYourPC>1</ProtectYourPC>
                                    <SkipMachineOOBE>true</SkipMachineOOBE>
                                    <SkipUserOOBE>true</SkipUserOOBE>
                                    <NetworkLocation>Work</NetworkLocation>
                                  </OOBE>
                                  <ProductKey>************</ProductKey>
                                  <RegisteredOwner>************</RegisteredOwner>
                                  <RegisteredOrganization>************</RegisteredOrganization>
                                  <TimeZone>(UTC-05:00) Eastern Time (US &amp; Canada)</TimeZone>
                                  <UserAccounts>
                                    <AdministratorPassword>
                                      <PlainText>true</PlainText>
                                      <Value>************</Value>
                                    </AdministratorPassword>
                                  </UserAccounts>
                                  <AutoLogon>
                                    <Enabled>true</Enabled>
                                    <Username>************</Username>
                                    <Password>
                                      <PlainText>true</PlainText>
                                      <Value>************</Value>
                                    </Password>
                                    <LogonCount>1</LogonCount>
                                  </AutoLogon>
                                  <FirstLogonCommands>
                                    <SynchronousCommand>
                                      <CommandLine>c:\ldsleep.exe 30</CommandLine>
                                      <Description></Description>
                                      <Order>1</Order>
                                    </SynchronousCommand>
                                    <SynchronousCommand>
                                      <CommandLine>cmd /q /c del /q c:\ldsleep.exe</CommandLine>
                                      <Description></Description>
                                      <Order>2</Order>
                                    </SynchronousCommand>
                                    <SynchronousCommand>
                                      <CommandLine>cmd /q /c del /q c:\unattend.xml</CommandLine>
                                      <Description></Description>
                                      <Order>3</Order>
                                    </SynchronousCommand>
                                <SynchronousCommand>
                                      <CommandLine>cmd /q /c del /q c:\windows\system32\sysprep\unattend.xml</CommandLine>
                                      <Description></Description>
                                      <Order>4</Order>
                                    </SynchronousCommand>
                                <SynchronousCommand>
                                      <CommandLine>cmd /q /c del /q c:\windows\panther\unattend.xml</CommandLine>
                                      <Description></Description>
                                      <Order>5</Order>
                                    </SynchronousCommand>
                                <SynchronousCommand>
                                      <CommandLine>c:\Windows\System32\slmgr.vbs /ato</CommandLine>
                                      <Description></Description>
                                      <Order>6</Order>
                                    </SynchronousCommand>
                                    <SynchronousCommand>
                                      <CommandLine>cmd /q /c del /q c:\ldiscan.cfg</CommandLine>
                                      <Description></Description>
                                      <Order>7</Order>
                                    </SynchronousCommand>
                                  </FirstLogonCommands>
                                </component>
                              </settings>
                              <settings pass="specialize">
                                <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86">
                                        <CopyProfile>true</CopyProfile>
                                        <WindowsFeatures>
                                             <ShowMediaCenter>false</ShowMediaCenter>               
                                        </WindowsFeatures>
                                        <ComputerName>%COMPUTERNAME%</ComputerName>
                                        <ProductKey>************</ProductKey>
                                </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>
                                        <BlockPopups>yes</BlockPopups>
                                        <DisableFirstRunWizard>true</DisableFirstRunWizard>
                                </component>
                                <component name="Security-Malware-Windows-Defender" 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">
                                        <DisableAntiSpyware>true</DisableAntiSpyware>
                                </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>
                                <component name="Microsoft-Windows-UnattendedJoin" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86">
                                  <Identification>
                                    <Credentials>
                                      <Domain></Domain>
                                      <Username></Username>
                                      <Password></Password>
                                    </Credentials>
                                    <JoinWorkgroup>WORKGROUP</JoinWorkgroup>
                                  </Identification>
                                </component>
                              </settings>
                              <settings pass="offlineServicing">
                                    <component name="Microsoft-Windows-LUA-Settings" 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">
                                        <EnableLUA>false</EnableLUA>
                                    </component>
                              </settings>
                            </unattend>

                            • 11. Re: Beyond frustrated with HII
                              Apprentice

                              I finally figured it out!  It appears the built in SYSPREP options in the LANDesk script creation simply does NOT work!  Here are the steps I took to get it to work:

                               

                              Install Windows 7 Pro

                              After installation has completed and is at welcome screen, press Ctrl-Shift-F3 to enter Audit Mode

                              Install all applications and make necessary changes and run defrag

                              Create unattend.XML using WAIK (little tricky but this creates a proper sysprep file unlike LANDesk)

                              Run following command: c:\windows\system32\sysprep\sysprep /generalize /oobe /shutdown /unattend:path to XML file created by WAIK

                              Image after shutdown

                              Create LANDesk deploy script using your sysprep file (unattend.xml) as template

                              Save and deploy!

                               

                              Works like a champ!!!!!

                              • 12. Re: Beyond frustrated with HII
                                LANDeskWizrd SSMMVPGroup

                                Glad you got it working. I too ran into this issue with the LANDesk options for sysprep which is why I went and built my own using WAIK. Its a little confusing at first but once you spend enough time on it you will see that there are lots that can be done with it.

                                • 13. Re: Beyond frustrated with HII
                                  Apprentice

                                  Thanks...yeah, WAIK is a little intense but the more and more I look at the options, the more it starts to make sense.  Now here is one remaining problem I have.  How do I add a security group to an image without having to connect the machine to the domain?  Is that even possible?

                                  • 14. Re: Beyond frustrated with HII
                                    EMiranda Expert

                                    you can use net local group to add users\groups into groups and add that to your RunSynchronous command in sysprep

                                     

                                    net localgroup

                                     

                                    net localgroup "Power Users" Everyone /ADD
                                    
                                    1 2 Previous Next