0 Replies Latest reply on Mar 30, 2010 5:00 AM by delhuskie

    Advice on Imaging using sysprep

    Apprentice

      I am new to OS deployment and i need a bit of advice on the following ..

      i have been able to captured and deploy an image using winpe no problem , I would like to know the best practise to sysprep the image then use

      landesk to join this to the domain , install the agent , rename etc.

       

      • clean install
      • run sysprep cereate a sysprep.inf  C:\sysprep\sysprep.inf   (does landesk use this file or the settings defined in landesk ?
      • reseal the PC
      • create the image 
      • create deployment script .. But the PC is not renamed , agent installed etc

       

      Many thanks in advance

       

      example of my image deploy script

       

      [VALUES]

      Task=8

      ScriptName=sysprep

      ScriptDescription=

      MCast=0

      FallBackNIC=

      UseFallBackNIC=FALSE

      ImageUserName=

      ImageDomain=

      ImagePassword=1089D4776E5A027D5C20925213E

      ImageToolType=11

      ImageUNC=\\landesk1\images\TWMETALS-B627B6.TBI

      ToolUNC=\\Landesk1\ldmain\osd\imagew 2\imagew.exe

      Partition=1

      ImageToolCmd=h:\osd\IMAGEW~1\imagew.exe /r /o /d:0 /f:"""i:\TWMETA~1.TBI""" /rb:0

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

      IsSysPrepImage=1

      IsVistaSysPrep=0

      UseExistingSysPrep=0

      ExistingSysPrepFile=

      SysPrepFile=\\LANDESK1\LDMAIN\LANDESK\FILES\sysprep.inf

      RemoteSysPrepCopyPath=c:\sysprep\sysprep.inf

      SysPrepTargetedType=0

      UseInventoryName=1

      ComputerNameTemplate=twbu-000

      ComputerNameStartNumber=45

      ClientInstallDomain=

      ClientInstallUsername=

      ClientInstallPassword=1089D4776E5A027D5C20925213E

      ClientInstallUNC=\\landesk1\ldmain\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=1

      MaxTMCSleep=200

      BANDWIDTH_WAN=100

      BANDWIDTH_LAN=100

      SubrepTTL=14

      TargetTTL=2

      [OWNER]

      GUID=1130e472-3ef8-41a2-8b0d-638c1f6911a5

      OSDPLUG=TRUE

      DESCRIPTION=

      NAME=sysprep

      TYPE=WinPE

      [JOBPARAM]

      ABORT_ON_CMD_FAILURE=1

      TASK_COMPLETION_ENABLED=FALSE

      AUTOCOMPUTERNAME=twbu-000

      AUTOCOMPUTERNAMESTARTNUMBER=45

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

      REMEXEC19=ldrun drvmap.exe twmetals\huskied 1089D4776E5A027D5C20925213E I: <qt/>\\landesk1.twmetals.net\images<qt/>, STATUS FACILITY=3513

      REMEXEC20=ldrun drvmap.exe twmetals\huskied 1089D4776E5A027D5C20925213E H: <qt/>\\landesk1.twmetals.net\ldmain<qt/>, STATUS FACILITY=3513

      REMEXEC21=diskpart /s X:\LDClient\WIPECLEANDISK0.TXT

      REMEXEC22=ldrun h:\osd\IMAGEW~1\imagew.exe /r /o /d:0 /f:"""i:\TWMETA~1.TBI""" /rb:0

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

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

      REMEXEC25=ldrun tokreplw X:\LDClient\assvol.txt partition=1

      REMEXEC26=diskpart /s X:\LDClient\assvol.txt

      REMEXEC27=ldrun sdclient.exe /f /o /dest="x:\ldclient\fixvista.bat" /p="http://%CUSTJOBHOSTIP%/landesk/files/FixVista.bat"

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

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

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

      REMEXEC31=ldrun x:\cba8\FixWindows.exe

      REMEXEC32=ldrun sdclient /f /o /dest="C:\sysprep\sysprep.inf" /p="http://%CUSTJOBHOSTIP%/landesk/files/sysprep.inf", STATUS

      REMEXEC33=ldrun sdclient /f /o /dest="C:\ldsleep.exe" /p="http://%CUSTJOBHOSTIP%/landesk/files/ldsleep.exe", STATUS

      REMEXEC34=ldrun tokreplw C:\sysprep\sysprep.inf COMPUTERNAME=%Computer - Device Name%

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

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

      REMEXEC37=ldrun tokreplw C:\LDISCAN.CFG IMAGEPATH=\\landesk1.twmetals.net\images\TWMETALS-B627B6.TBI

      REMEXEC38=ldrun diskinfo extend_last_partition

      REMEXEC39=ldrun reboot, timeout=2