Expanding the Boot Drive After Installing Bootloader

The Bootloader installation creates of a new partition that immediately follows the boot partition (typically C:) on the disk. To extend the boot partition we need to move the Bootloader partition, labeled HTBOOTLDR, to the end of the disk using the MoveHTbootloader.ps1 PowerShell script.

  1. Extend the disk containing the boot partition using the instructions from your virtualization vendor.
  2. Log into PowerShell on the Windows machine.
  3. Locate the main Policy Agent installation directory. The PowerShiell scripts are located in the bin folder under this main directory. The default directory is C:\Program Files\hcs.
  4. Run the PowerShell script MoveHTBootloader.ps1 by entering the command powershell -File "C:\hytrust-install-dir\MoveHTBootloader.ps1".

    The script creates a new Bootloader partition at the end of the recently extended disk and reboots the virtual machine. On reboot, MoveHTBootloader.ps1 will again be executed automatically and will delete the old Bootloader partition and then extend the boot partition to take up the available free space.

    Note: This operation changes the drive letter for the HTBOOTLDR drive. The original drive letter can be restored by either using the htblconf.exe GUI utility or the ChangeHTBootloaderDrive.ps1 PowerShell script.