Installing the Bootloader After the Policy Agent Is Installed
If you originally installed the Policy Agent without the Bootloader component, you can install the Bootloader at any time as long as you have access to PowerShell.
To install the Bootloader with PowerShell:
- Log into PowerShell on the Windows machine.
- Locate the main Policy Agent installation directory. The PowerShell scripts are located in the
bin
folder under this main directory. The default directory isC:\Program Files\hcs
. -
Run the PowerShell script
InstallHTBootloader.ps1
by entering the commandpowershell -File "C:\hytrust-install-dir\InstallHTBootloader.ps1" -drive n:
, where-drive n
is an optional drive letter. If you do not assign a drive letter, the script selects the next available drive letter.The PowerShell script should return an exit code of zero. Any other exit code indicates an error, which will print in the log file
C:\hytrust-install-dir\InstallhtBootloader.log
.Example
PS C:\users\administrator> powershell -File "C:\Program Files\hcs\bin\InstallHTBootloader.ps1” This system already has a separate System volume and Boot volume. Creating new primary partition 1 of 1 Failed, trying to free up space Shrinking C: by 360 MB, this may take some time DiskPart successfully shrunk the volume by: 360 MB Trying to create partition again Successfully created primary Partition 3 on Disk 0 Formatting DiskPart successfully formatted the volume. DiskPart successfully assigned the drive letter or mount point. Creating SRP Boot files successfully created. Successfully created SRP on Partition 3 Disk 0 Copying bootloader files Updating bootloader configuration Adding boot menu entries Marking new SRP active Winldr serial: 40604346 , Bootldr serial: 1155100468 Please reboot for changes to take effect. If you have executed this script from Power Shell directly, please execute SetupHTBootloaderNetwork.ps1 before rebooting
-
Set up the network by entering the following PowerShell command:
powershell -File SetupHTBootloaderNetwork.ps1
Example
PS C:\users\administrator> powershell -File "C:\Program Files\hcs\bin\SetupHTBootloaderNetwork.ps1" Configuring HT Bootloader Network: ---------------------------------- Following network interfaces are available: 1) Intel(R) PRO/1000 MT Network Connection 00:0C:29:45:59:93 2) RAS Async Adapter 20:41:53:59:4E:FF Select the primary interface by number or press Q to quit: 1 DHCP is currently enabled for the selected network interface. Use DHCP during boot? [y/n] : n Setting up static IP for use during boot Current configuration: Network parameters provided: IP address : 172.16.14.222 Gateway address : 172.16.14.2 Netmask : 255.255.255.0 DNS server address : 172.16.14.2 Host Name : WINQ2FCCC3ALIH DNS Domain : localdomain Is this correct? [y/n] : y Successfully updated HT Bootloader network configuration
- Reboot the VM.