12 Replies Latest reply on Jul 16, 2013 12:40 PM by ddcjona

    ImageX Issues.  Bootmgr is missing

    edwest Apprentice

      I am not too sure what I am doing wrong but I keep getting a Bootmgr is missing after I image with imageX.

       

      We have been using Windows Deployment server and have a bunch of wim images.  I have tried changing the system partition in the OSD job and went from 1 to 4 and I still get this message?

       

      I am sure I am doing something wrong but what check box did I miss.

       

      Any help would be appreciated.

      Ed

        • 1. Re: ImageX Issues.  Bootmgr is missing
          edwest Apprentice

          I think I figured out why this is happening.  Its a Windows 7 issue with ImageX.

           

          You have to run (X:\Windows\system32\bcdboot.exe C:\Windows) from within WinPE after you image with imageX.

           

          Now since I have found this key piece of information, I looked for X:\Windows\system32\bcdboot.exe and it's no where to be found on my LANDesk WinPE config.

           

          Now I need to find out how to get this added to my LANDesk WinPE config? 

           

           

           

          Figured it out. I am using the Vista Win PE and need to be using Win PE 3.0 Windows 7.  I hope to have a better experience

           

          Message was edited by: edwest

          • 2. Re: ImageX Issues.  Bootmgr is missing
            EMiranda Expert

            LANDesk does all the BCD edits with the utility FixWindows.exe

             

            Did you remove that line from your OSD script?

             

            by default it includes these lines:

             

             

            REMEXEC29=ldrun sdclient.exe /f /o /dest="x:\ldclient\fixvista.bat" /p="http://%CUSTJOBHOSTIP%/landesk/files/FixVista.bat"
            REMEXEC30=ldrun sdclient.exe /f /o /dest="x:\ldclient\fixntfs.exe" /p="http://%CUSTJOBHOSTIP%/landesk/files/fixntfs.exe"
            REMEXEC31=ldrun sdclient.exe /f /o /dest="x:\ldclient\bcdedit.exe" /p="http://%CUSTJOBHOSTIP%/landesk/files/bcdedit.exe"
            REMEXEC32=ldrun sdclient.exe /f /o /dest="x:\cba8\FixWindows.exe" /p="http://%CUSTJOBHOSTIP%/landesk/files/FixWindows.exe"
            
            1 of 1 people found this helpful
            • 3. Re: ImageX Issues.  Bootmgr is missing
              edwest Apprentice

              Thanks fo r the reply.

               

              No I haven't deleted anything or messed with the script.

               

              Maybe figured it out. I am using the Vista Win PE and need to be using Win PE 3.0 Windows 7.  I hope to have a better experience once I get Win PE ver3.0 up on LANDesk.

              • 4. Re: ImageX Issues.  Bootmgr is missing
                edwest Apprentice

                I looked at your script and I don't have (x:\ldclient\fixvista.bat, fixntfs.exe or bcdedit.exe) in that directory?  While in WinPE.

                • 5. Re: ImageX Issues.  Bootmgr is missing
                  EMiranda Expert

                  its not going to be there by default, the lines above are downloading it from the core server.

                   

                  what version of LANDesk are you on?  can you post your OSD script?

                  • 6. Re: ImageX Issues.  Bootmgr is missing
                    edwest Apprentice

                    We are on version 9.0.2.3.

                     

                    Here is my script:

                     

                    [VALUES]
                    Task=8
                    ScriptName=780Deployment
                    ScriptDescription=
                    MCast=0
                    FallBackNIC=
                    UseFallBackNIC=FALSE
                    ImageUserName=deploy
                    ImageDomain=westy
                    ImagePassword=20CAD9464765B26F741B54301592B73B6CB3F190A40
                    ImageToolType=4
                    ImageUNC=\\wds\REMINST\Images\780\Install.wim
                    ToolUNC=\\wds\REMINST\Images\Landesk\imagex.exe
                    Partition=4
                    ImageToolCmd=cmd /c RunBatch -1 h:\Images\Landesk imagex.exe /apply i:\Images\780\Install.wim 1 C:, STATUS FACILITY=3513, SYNC
                    ImageToolCmdsFile=\\landesk\LDMAIN\LANDESK\FILES\780Deployment.txt
                    IsSysPrepImage=1
                    IsVistaSysPrep=0
                    UseExistingSysPrep=0
                    ExistingSysPrepFile=
                    SysPrepFile=\\landesk\LDMAIN\LANDESK\FILES\780Deployment.inf
                    RemoteSysPrepCopyPath=c:\sysprep\sysprep.inf
                    SysPrepTargetedType=0
                    UseInventoryName=1
                    ComputerNameTemplate=LD$MAC
                    ComputerNameStartNumber=0
                    ClientInstallDomain=westy
                    ClientInstallUsername=deploy
                    ClientInstallPassword=20CAD9464765B26F741B54301592B73B6CB3F190A40
                    ClientInstallUNC=\\landesk\ldlogon
                    ConfigProcessors=0
                    ImageHWType=0
                    ImageOSType=0
                    ImageProcessorType=0
                    RemoteProcessorPath=%windir%\inf\hal.inf
                    ConfigAdvancedMCast=0
                    UseWOL=FALSE
                    WOLSeconds=120
                    DiscoveryType=0
                    MaxTMCThreads=5
                    MinTMCSleep=100
                    MaxTMCSleep=200
                    BANDWIDTH_WAN=100
                    BANDWIDTH_LAN=100
                    SubrepTTL=14
                    TargetTTL=2
                    [OWNER]
                    GUID=7be4b87c-d84b-4bfc-b4a2-425952be1ba4
                    OSDPLUG=TRUE
                    DESCRIPTION=
                    NAME=780Deployment
                    TYPE=WinPE
                    [JOBPARAM]
                    ABORT_ON_CMD_FAILURE=1
                    TASK_COMPLETION_ENABLED=FALSE
                    AUTOCOMPUTERNAME=LD$MAC
                    AUTOCOMPUTERNAMESTARTNUMBER=0
                    [MACHINES]
                    REMEXEC0=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/bootfile.exe"
                    REMEXEC1=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/tlibr16.dll"
                    REMEXEC2=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/tlibr32.dll"
                    REMEXEC3=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/lddefrag.exe"
                    REMEXEC4=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/cicfgmgr.vxd"
                    REMEXEC5=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/cindis.vxd"
                    REMEXEC6=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/copyfile.exe"
                    REMEXEC7=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/tokreplw.exe"
                    REMEXEC8=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/boot.img"
                    REMEXEC9=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/ChangeBCD.exe"
                    REMEXEC10=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/BCD"
                    REMEXEC11=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/files/bcdedit.exe"
                    REMEXEC12=<qt/>%LDMS_CLIENT_DIR%\ChangeBCD<qt/> <qt/>%LDMS_CLIENT_DIR%\bcdedit.exe<qt/> <qt/>%LDMS_CLIENT_DIR%\BCD<qt/>
                    REMEXEC13=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /dest="C:\boot.wim" /p="http://%CUSTJOBHOSTIP%/landesk/vboot/boot.wim"
                    REMEXEC14=<qt/>%LDMS_CLIENT_DIR%\copyfile.exe<qt/> <qt/>%LDMS_CLIENT_DIR%\boot.img<qt/> <qt/>%LDMS_CLIENT_DIR%\BCD<qt/> \boot\BCD
                    REMEXEC15=<qt/>%LDMS_CLIENT_DIR%\lddefrag.exe<qt/> <qt/>%LDMS_CLIENT_DIR%\boot.img<qt/>, STATUS
                    REMEXEC16=<qt/>%LDMS_CLIENT_DIR%\bootfile.exe<qt/> %LDMS_CLIENT_DIR%\boot.img /keep /bootunsafe, ASYNC
                    BEGINWINPE=TRUE
                    REMPING17=WINPE, TIMEOUT=1800
                    REMEXEC18=ldrun drvmap.exe westy\deploy 20CAD9464765B26F741B54301592B73B6CB3F190A40 I: """\\wds\REMINST""", STATUS FACILITY=3513
                    REMEXEC19=ldrun drvmap.exe westy\deploy 20CAD9464765B26F741B54301592B73B6CB3F190A40 H: """\\wds\REMINST""", STATUS FACILITY=3513
                    REMEXEC20=ldrun sdclient /f /o /dest="X:\LDClient\LDPathExist.exe" /p="http://%CUSTJOBHOSTIP%/landesk/files/LDPathExist.exe", STATUS
                    REMEXEC21=ldrun LDPathExist.exe """I:\Images\780\Install.wim""", STATUS
                    REMEXEC22=ldrun LDPathExist.exe """H:\Images\Landesk\imagex.exe""", STATUS
                    REMEXEC23=diskpart /s X:\LDClient\rmvol.txt
                    REMEXEC24=diskpart /s X:\LDClient\wipeDisk0.txt
                    REMEXEC25=cmd /c format /Y /FS:NTFS /Q /V:C-DRIVE c:
                    REMEXEC26=ldrun cmd /c RunBatch -1 h:\Images\Landesk imagex.exe /apply i:\Images\780\Install.wim 1 C:, STATUS FACILITY=3513, SYNC
                    REMEXEC27=ldrun sdclient /f /o /dest="X:\LDClient\diskinfo.exe" /p="http://%CUSTJOBHOSTIP%/landesk/files/diskinfo.exe", STATUS
                    REMEXEC28=ldrun sdclient /f /o /dest="X:\LDClient\assvol2.txt" /p="http://%CUSTJOBHOSTIP%/landesk/files/assvol.txt", STATUS
                    REMEXEC29=ldrun sdclient.exe /f /o /dest="x:\ldclient\RMVOLLETTER.TXT" /p="http://%CUSTJOBHOSTIP%/landesk/files/RMVOLLETTER.TXT"
                    REMEXEC30=ldrun tokreplw X:\LDClient\assvol2.txt partition=4
                    REMEXEC31=diskpart /s X:\LDClient\RMVOLLETTER.TXT
                    REMEXEC32=diskpart /s X:\LDClient\assvol2.txt
                    REMEXEC33=ldrun sdclient.exe /f /o /dest="x:\ldclient\fixvista.bat" /p="http://%CUSTJOBHOSTIP%/landesk/files/FixVista.bat"
                    REMEXEC34=ldrun sdclient.exe /f /o /dest="x:\ldclient\fixntfs.exe" /p="http://%CUSTJOBHOSTIP%/landesk/files/fixntfs.exe"
                    REMEXEC35=ldrun sdclient.exe /f /o /dest="x:\ldclient\bcdedit.exe" /p="http://%CUSTJOBHOSTIP%/landesk/files/bcdedit.exe"
                    REMEXEC36=ldrun sdclient.exe /f /o /dest="x:\cba8\FixWindows.exe" /p="http://%CUSTJOBHOSTIP%/landesk/files/FixWindows.exe"
                    REMEXEC37=ldrun x:\cba8\FixWindows.exe 4
                    REMEXEC38=ldrun sdclient /f /o /dest="C:\sysprep\sysprep.inf" /p="http://%CUSTJOBHOSTIP%/landesk/files/780Deployment.inf", STATUS
                    REMEXEC39=ldrun sdclient /f /o /dest="C:\ldsleep.exe" /p="http://%CUSTJOBHOSTIP%/landesk/files/ldsleep.exe", STATUS
                    REMEXEC40=ldrun tokreplw C:\sysprep\sysprep.inf COMPUTERNAME=%Computer - Device Name%
                    REMEXEC41=cmd /c copy /y X:\LDClient\guid.pds C:\LDISCAN.CFG
                    REMEXEC42=ldrun tokreplw C:\LDISCAN.CFG DEVICEID=%Computer - Device ID%
                    REMEXEC43=ldrun tokreplw C:\LDISCAN.CFG IMAGEPATH=\\wds\REMINST\Images\780\Install.wim
                    REMEXEC44=ldrun diskinfo extend_last_partition
                    REMEXEC45=ldrun reboot, timeout=2

                    • 7. Re: ImageX Issues.  Bootmgr is missing
                      EMiranda Expert

                      if you look at these lines it is downloading and running:

                       

                      REMEXEC33=ldrun sdclient.exe /f /o /dest="x:\ldclient\fixvista.bat" /p="http://%CUSTJOBHOSTIP%/landesk/files/FixVista.bat"
                      REMEXEC34=ldrun sdclient.exe /f /o /dest="x:\ldclient\fixntfs.exe" /p="http://%CUSTJOBHOSTIP%/landesk/files/fixntfs.exe"
                      REMEXEC35=ldrun sdclient.exe /f /o /dest="x:\ldclient\bcdedit.exe" /p="http://%CUSTJOBHOSTIP%/landesk/files/bcdedit.exe"
                      REMEXEC36=ldrun sdclient.exe /f /o /dest="x:\cba8\FixWindows.exe" /p="http://%CUSTJOBHOSTIP%/landesk/files/FixWindows.exe"
                      REMEXEC37=ldrun x:\cba8\FixWindows.exe 4

                       

                       

                       

                      when this runs - REMEXEC37=ldrun x:\cba8\FixWindows.exe 4, it should display a dos window and show you what it is doing, it could be failing there.  If you say that all you need to do is run bcdboot.exe C:\Windows to fix your issue, you could add the bcdboot to your files directory %coreserver%\ldmain\landesk\files\bcdboot.exe

                       

                      add this to your OSD script

                       

                      REMEXEC38=ldrun sdclient.exe /f /o /dest="x:\ldclient\bcdboot.exe" /p="http://%CUSTJOBHOSTIP%/landesk/files/bcdboot.exe"

                      REMEXEC39=ldrun x:\ldclient\bcdboot.exe C:\Windows

                      • 8. Re: ImageX Issues.  Bootmgr is missing
                        edwest Apprentice

                        Thanks for all the help but I still cannot get it to ImageX to deploy a Windows 7 image.  I have not tried with a Windows Xp but I am about done with ImageX in LANDesk.

                         

                        I am about done with LANDesk imaging all together. I tried over the weekend to deploy a WIM image to a PC then capture the image with ImageW V2. I can capture the image but still the same issues of what is the system drive and the bootmbr.

                         

                        I have never had a product that I had to fight with to get an image to deploy.  This should not be that hard to deploy an image. I already have images.  I guess back to WDS.

                         

                        Again Thanks for your help.

                        • 9. Re: ImageX Issues.  Bootmgr is missing
                          Rookie

                          You may consider trying SmartDeploy which makes it easier to create and update WIM files. It is wizard-driven and easier to use than IMAGEX. My guess from your posting is that the partition might not be active. It could be that the MBR has a problem and, bootmgr could actually be missing. We generally don’t run into these problems with SmartDeploy since it takes care of that in the background.

                          • 10. Re: ImageX Issues.  Bootmgr is missing
                            Apprentice

                            You are absolutely right. Bcdboot.exe command would fix the issue. All you have to do is keep the bcdboot.exe in the shared path of the imagex tool or the image (wim) folder. Then execute it right after the execution of wim image.

                             

                            As you know I and H drives are mapped for the wim image and the imaging tool respectively. For example if you have kept the bcdboot.exe file under the imaging tool (\\wds\REMINST\Images\Landesk\ = h:\Images\Landesk) then h:\Images\Landesk\bcdboot.exe can be executed.

                             

                            You may need to add this below line by going to the advance edit of this deploy script.

                             

                            REMEXEC27=ldrun cmd /c h:\Images\Landesk\bcdboot.exe C:\Windows

                            (Please make sure to increase the REMEXEC number by 1 after this line REMEXEC27)

                             

                            Hope this helps.

                             

                            Regis

                            • 11. Re: ImageX Issues.  Bootmgr is missing
                              keifer2008 Apprentice

                              Hopefully this helps anyone still experiencing the issue...

                               

                              I was experiencing the same issue when deploying a Windows 7 64bit image with ImageX. BCDBoot is already included in WinPE (as far as 9.0 SP3 goes).

                               

                              This line fixed the issue for me:

                               

                              REMEXEC47=ldrun x:\Windows\system32\bcdboot.exe C:\Windows

                               

                              I added it to the end of file, before the reboot command.

                              • 12. Re: ImageX Issues.  Bootmgr is missing
                                Rookie

                                I had the same problem. Having this run fixed it for me as well. x:\Windows\system32\bcdboot.exe C:\Windows