- Log into PowerShell on the Windows machine.
- Navigate to the
binfolder under the main Policy Agent installation directory. The default directory isC:\Program Files\hcs. Do one of the following:
- Run the PowerShell script
SetupHTBootloaderNetwork.ps1by entering the commandpowershell -File SetupHTBootloaderNetwork.ps1. - Open the Bootloader GUI by running
htblconf.exe. This GUI is similar to the Policy Agent installation GUI and it presents the same drive and network configuration options.
- Run the PowerShell script
- Reboot the VM.
Example 1, Network Configuration Using DHCP
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] :y Successfully updated HT Bootloader network configuration
Example 2, Network Configuration Using Current Static IP Settings
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
Example 3, Network Configuration Using Custom Static IP Settings
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] : n Please provide network parameters: IP address : 172.16.14.22 Netmask : 172.16.14.2 Gateway address : 255.255.255.0 DNS server address : 172.16.14.3 Host Name : MYPC DNS Domain : localdomain Network parameters provided: IP address : 172.16.14.22 Netmask : 172.16.14.2 Gateway address : 255.255.255.0 DNS server address : 172.16.14.3 Host Name : MYPC DNS Domain : localdomain Is this correct? [y/n] :y Successfully updated HT Bootloader network configuration