Deployment Solution

 View Only
  • 1.  ALTIRIS_BOOTDISK points to wrong drive letter

    Posted Dec 19, 2014 04:12 PM

    I'm troubleshooting an inherited WinPE 4 boot disk configuration created with DS 6.9 SP6 (6.9.9469.462) that has a custom batch file used to image machines either from our DS server or by loading images on the USB drive and using them offline.  One of the first things the script does is use diskpart to change the drive letter of the USB boot disk to U: using the ALTIRIS_BOOTDISK environment variable.  Here's the diskpart script:

    SELECT VOL=%ALTIRIS_BOOTDISK%
    ASSIGN LETTER=U

    The first line of this script fails with "The system cannot find the drive specified".  I added some output to the script and on my test client the bootdisk value is A: which is incorrect, it's actually D: though this is obviously variable.  If I open the registry the HKLM\SYSTEM\CurrentControlSet\Control\PEBootRamdiskSourceDrive value doesn't exist.

    I've tried the solution offerred in TS 213143, this post, and tried hardcoding the opt variable used in the startutl.bat template to run the getpxe commands using winpe2.  Nothing seems to result in ALTIRIS_BOOTDISK being assigned the correct drive letter of the USB bood drive.  Anyone have any ideas?



  • 2.  RE: ALTIRIS_BOOTDISK points to wrong drive letter

    Posted Dec 22, 2014 04:09 PM

    I'm sure this isn't the way I'm supposed to do it but I 'fixed' this by just making the wpeutil call myself in startup.bat to populate the registry and then used that to set the environment variable.

    REM Set the correct ALTIRIS_BOOTDISK
    call wpeutil updatebootinfo
    FOR /f "skip=2 tokens=3 delims= " %%a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Control" /v PEBootRamdiskSourceDrive') DO SET ALTIRIS_BOOTDISK=%%a