2 Replies Latest reply on Apr 16, 2014 2:20 AM by Ayersie

    ImageX deployment with OSD Deployment

    Rookie

      I am able to capture and image and deploy an image using ImageX but after the image is deployed we end up with 2 OS boot options. Is there a command that we need to add to the advance script so it will olny have one and will just boot directly to the OS?

       

      IMG_20140415_145127_364.jpg

       

      Here is my Advance script

       

      Task=8

      ScriptName=RCASBaseImageX

      ScriptDescription=RCASBaseImageX

      MCast=0

      FallBackNIC=

      UseFallBackNIC=FALSE

      ImageUserName=imageadmin

      ImageDomain=schools

      ImagePassword=1082BD11EEDD8F0594052707226

      ImageToolType=4

      ImageUNC=\\tclandesk\rcas\Images\Uploads\RCASBase.wim

      ToolUNC=\\landesk1\ldmain\osd\imaging\imagex.exe

      Partition=1

      ImageToolCmd=cmd /c RunBatch -1 h:\osd\imaging imagex.exe /apply i:\Images\Uploads\RCASBase.wim 1 C:, STATUS FACILITY=3513, SYNC

      ImageToolCmdsFile=\\LANDESK1\LDMAIN\LANDESK\FILES\RCASBaseImageX.txt

      IsSysPrepImage=0

      ConfigAdvancedMCast=0

      UseWOL=FALSE

      WOLSeconds=120

      DiscoveryType=0

      MaxTMCThreads=5

      MinTMCSleep=1

      MaxTMCSleep=200

      BANDWIDTH_WAN=100

      BANDWIDTH_LAN=100

      SubrepTTL=14

      TargetTTL=2

      [OWNER]

      GUID=e8eb0e49-b848-4205-8ed4-9c26f2771ab1

      OSDPLUG=TRUE

      DESCRIPTION=RCASBaseImageX

      NAME=RCASBaseImageX

      TYPE=WinPE

      [JOBPARAM]

      ABORT_ON_CMD_FAILURE=1

      TASK_COMPLETION_ENABLED=FALSE

      [MACHINES]

      REMEXEC0=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/bootfile.exe" /disableclientqueue

      REMEXEC1=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/tlibr16.dll" /disableclientqueue

      REMEXEC2=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/tlibr32.dll" /disableclientqueue

      REMEXEC3=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/lddefrag.exe" /disableclientqueue

      REMEXEC4=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/cicfgmgr.vxd" /disableclientqueue

      REMEXEC5=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/cindis.vxd" /disableclientqueue

      REMEXEC6=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/copyfile.exe" /disableclientqueue

      REMEXEC7=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/tokreplw.exe" /disableclientqueue

      REMEXEC8=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/boot.img" /disableclientqueue

      REMEXEC9=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/ChangeBCD.exe" /disableclientqueue

      REMEXEC10=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /dest="%LDMS_CLIENT_DIR%\BCD" /p="http://%CUSTJOBHOSTIP%/landesk/vboot/BCD.dat" /disableclientqueue

      REMEXEC11=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/files/bcdedit.exe" /disableclientqueue

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

      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=diskpart /s X:\LDClient\rmvol.txt

      REMEXEC19=ldrun drvmap.exe schools\imageadmin 1082BD11EEDD8F0594052707226 I: """\\tclandesk.schools.rcas.org\rcas""", STATUS FACILITY=3513

      REMEXEC20=ldrun drvmap.exe schools\imageadmin 1082BD11EEDD8F0594052707226 H: """\\LanDesk1.schools.rcas.org\ldmain""", STATUS FACILITY=3513

      REMEXEC21=ldrun sdclient /f /o /dest="X:\LDClient\LDPathExist.exe" /p="http://%CUSTJOBHOSTIP%/landesk/files/LDPathExist.exe" /disableclientqueue, STATUS

      REMEXEC22=ldrun LDPathExist.exe """I:\Images\Uploads\RCASBase.wim""", STATUS

      REMEXEC23=ldrun LDPathExist.exe """H:\osd\imaging\imagex.exe""", STATUS

      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:\osd\imaging imagex.exe /apply i:\Images\Uploads\RCASBase.wim 1 C:, STATUS FACILITY=3513, SYNC

      REMEXEC27=ldrun sdclient /f /o /dest="X:\LDClient\diskinfo.exe" /p="http://%CUSTJOBHOSTIP%/landesk/files/diskinfo.exe" /disableclientqueue, STATUS

      REMEXEC28=ldrun sdclient /f /o /dest="X:\LDClient\assvol2.txt" /p="http://%CUSTJOBHOSTIP%/landesk/files/assvol.txt" /disableclientqueue, STATUS

      REMEXEC29=ldrun sdclient.exe /f /o /dest="x:\ldclient\RMVOLLETTER.TXT" /p="http://%CUSTJOBHOSTIP%/landesk/files/RMVOLLETTER.TXT" /disableclientqueue

      REMEXEC30=ldrun tokreplw X:\LDClient\assvol2.txt partition=1

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

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

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

      REMEXEC36=ldrun sdclient.exe /f /o /dest="x:\cba8\FixWindows.exe" /p="http://%CUSTJOBHOSTIP%/landesk/files/FixWindows.exe" /disableclientqueue

      REMEXEC37=ldrun x:\cba8\FixWindows.exe 1

      REMEXEC38=cmd /c copy /y X:\LDClient\guid.pds C:\LDISCAN.CFG

      REMEXEC39=ldrun tokreplw C:\LDISCAN.CFG DEVICEID=%Computer - Device ID%

      REMEXEC40=ldrun tokreplw C:\LDISCAN.CFG IMAGEPATH=\\tclandesk.schools.rcas.org\rcas\Images\Uploads\RCASBase.wim

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

      REMEXEC42=ldrun diskinfo extend_last_partition

      REMEXEC43=ldrun reboot, timeout=2