Quantcast
Channel: Ivanti User Community: Message List
Viewing all articles
Browse latest Browse all 13696

\Boot\BCD error after OS deploy

$
0
0

Hi,

 

I'm having an issue after OS deployment using Landesk Management Console 9.5

 

Long story short: I have a new notebook (Fujitsu Lifebook LH532) that I sysprepped. I am able to PXE boot from this machine and I am able to hit F8 and load WinPE. I am able to start the capture script and everything goes well. I reboot the machine and I PXE boot again, load WinPE, start the deploy script and shut down the machine.

 

When I power it up I'm getting the following error message on a black screen:

 

File: \Boot\BCD

 

Status: 0xc000000f

 

Info: An error occurred while attempting to read the boot configuration data.

 

I was able to capture and deploy the OS on that machine the first couple of times I tried, but the image was something like 24 - 26GB (too big for just a Windows 7 Professional SP1 image, without software nor patches installed). I had 3 partitions, one reserved (2GB), one recovery (14GB) and the last one was the OS. In this scenario I was able to power on the machine without the \Boot\BCD error. To slim down the OS image, I deleted all the partitions, reinstalled the OS from the DVD, installed the necessary drivers and now I have two partitions (100MB reserved and the OS partition). I am able to reboot the pc and it work just fine, so I assume that the image is ok. The image I am able to capture is only 8GB (only OS and drivers, no programs or patches installed). Unfortunately if I deploy it to that machine I get the \Boot\BCD error.

 

I would like some help on this, especially I want to know what is causing the \Boot\BCD error. Maybe the capture and deploy scripts I'm using? O maybe something else?

 

Capture script:

[VALUES]

Task=7

ScriptName=Marco_Capture_Windows_7_Imagew

ScriptDescription=Capture Windows 7 image with IMAGEW.EXE v2

FallBackNIC=

UseFallBackNIC=FALSE

ImageUserName=mtagliabue

ImageDomain=PRAXIDOMAIN

ImagePassword=20EDE9C29C2A1F9A23AE59DBA4C3EDD5826280A115F

ImageToolType=11

ImageUNC=\\ifas\ITSGROUP\LANDesk\images

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

ImageToolCmd=H:\osd\IMAGEW~1\imagew.exe /b /uy /d:0 /rb:0 /max:2GB /f:"""i:\LANDesk\images\%Computer - Device Name%"""

[OWNER]

GUID=630c4e24-8a69-4000-a0f3-3400c6940b90

OSDPLUG=TRUE

DESCRIPTION=Capture Windows 7 image with IMAGEW.EXE v2

NAME=Marco_Capture_Windows_7_Imagew

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/FlushBuffer.exe" /disableclientqueue

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

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

REMEXEC7=<qt/>%LDMS_CLIENT_DIR%\sdclient.exe<qt/> /f /o /p="http://%CUSTJOBHOSTIP%/landesk/vboot/copyfile.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%\FlushBuffer.exe<qt/>, STATUS

REMEXEC17=<qt/>%LDMS_CLIENT_DIR%\bootfile.exe<qt/> %LDMS_CLIENT_DIR%\boot.img /keep /bootunsafe, ASYNC

BEGINWINPE=TRUE

REMPING18=WINPE, TIMEOUT=1800

REMEXEC19=diskpart /s X:\LDClient\rmvol.txt

REMEXEC20=ldrun drvmap.exe PRAXIDOMAIN\mtagliabue 20EDE9C29C2A1F9A23AE59DBA4C3EDD5826280A115F I: """\\ifas.praxi.com\ITSGROUP""", STATUS FACILITY=3513

REMEXEC21=ldrun drvmap.exe PRAXIDOMAIN\mtagliabue 20EDE9C29C2A1F9A23AE59DBA4C3EDD5826280A115F H: """\\LANDESK.praxi.com\ldmain""", STATUS FACILITY=3513

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

REMEXEC23=ldrun tokreplw X:\LDClient\assvol.txt partition=2

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

REMEXEC25=cmd /c del /f /q C:\boot.wim

REMEXEC26=ldrun H:\osd\IMAGEW~1\imagew.exe /b /uy /d:0 /rb:0 /max:2GB /f:"""i:\LANDesk\images\%Computer - Device Name%"""

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 reboot, timeout=2

 

 

Deploy script:

[VALUES]

Task=8

ScriptName=Marco_Deploy_Windows_7_Image

ScriptDescription=Deploy Windows 7 image with IMAGEW.EXE v2

MCast=0

FallBackNIC=

UseFallBackNIC=FALSE

ImageUserName=mtagliabue

ImageDomain=PRAXIDOMAIN

ImagePassword=20EDE9C29C2A1F9A23AE59DBA4C3EDD5826280A115F

ImageToolType=11

ImageUNC=\\ifas\ITSGROUP\LANDesk\images\LD5C9AD8653BE9.TBI

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

Partition=2

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

ImageToolCmdsFile=\\LANDESK\LDMAIN\LANDESK\FILES\Marco_Deploy_Windows_7_Image.txt

IsSysPrepImage=1

IsVistaSysPrep=1

UseExistingSysPrep=0

ExistingSysPrepFile=

SysPrepFile=\\LANDESK\LDMAIN\LANDESK\FILES\Marco_Deploy_Windows_7_Image.xml

RemoteSysPrepCopyPath=c:\unattend.xml

SysPrepTargetedType=8

UseInventoryName=1

ComputerNameTemplate=LD$MAC

ComputerNameStartNumber=0

ClientInstallDomain=PRAXIDOMAIN

ClientInstallUsername=mtagliabue

ClientInstallPassword=20EDE9C29C2A1F9A23AE59DBA4C3EDD5826280A115F

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

MaxTMCSleep=200

BANDWIDTH_WAN=100

BANDWIDTH_LAN=100

SubrepTTL=14

TargetTTL=2

[OWNER]

GUID=3a0035d1-0433-4b53-ad02-ece95da037ca

OSDPLUG=TRUE

DESCRIPTION=Deploy Windows 7 image with IMAGEW.EXE v2

NAME=Marco_Deploy_Windows_7_Image

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" /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 PRAXIDOMAIN\mtagliabue 20EDE9C29C2A1F9A23AE59DBA4C3EDD5826280A115F I: """\\ifas.praxi.com\ITSGROUP""", STATUS FACILITY=3513

REMEXEC20=ldrun drvmap.exe PRAXIDOMAIN\mtagliabue 20EDE9C29C2A1F9A23AE59DBA4C3EDD5826280A115F H: """\\LANDESK.praxi.com\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:\LANDesk\images\LD5C9AD8653BE9.TBI""", STATUS

REMEXEC23=ldrun LDPathExist.exe """H:\osd\imagew 2\imagew.exe""", STATUS

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

REMEXEC25=ldrun h:\osd\IMAGEW~1\imagew.exe /r /o /d:0 /f:"""i:\LANDesk\images\LD5C9A~1.TBI""" /rb:0

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

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

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

REMEXEC29=ldrun tokreplw X:\LDClient\assvol2.txt partition=2

REMEXEC30=diskpart /s X:\LDClient\RMVOLLETTER.TXT

REMEXEC31=diskpart /s X:\LDClient\assvol2.txt

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

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

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

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

REMEXEC36=ldrun x:\cba8\FixWindows.exe 2

REMEXEC37=ldrun sdclient /f /o /dest="C:\unattend.xml" /p="http://%CUSTJOBHOSTIP%/landesk/files/Marco_Deploy_Windows_7_Image.xml" /disableclientqueue, STATUS

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

REMEXEC39=ldrun tokreplw C:\unattend.xml COMPUTERNAME=%Computer - Device Name%

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

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

REMEXEC42=ldrun tokreplw C:\LDISCAN.CFG IMAGEPATH=\\ifas.praxi.com\ITSGROUP\LANDesk\images\LD5C9AD8653BE9.TBI

REMEXEC43=sdclient.exe /f /o /dest="x:\ldclient\FixUnattend.exe" /p="http://%CUSTJOBHOSTIP%/landesk/files/FixUnattend.exe" /attemptpref /disableclientqueue

REMEXEC44=ldrun x:\ldclient\FixUnattend.exe

REMEXEC45=ldrun diskinfo extend_last_partition

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

REMEXEC47=ldrun /qt HIIClient /uncpath

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

REMEXEC49=ldrun reboot, timeout=2

 

Reading similar problems on the internet, I modified the default scripts adding these lines:

 

for the Capture script I added these lines:

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"

 

for the Deploy scritp I added this line:

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

 

Unfortunately I still have this issue.

 

Any help on this?

 

 

Thank-you


Viewing all articles
Browse latest Browse all 13696

Trending Articles