Enable Windows Hyper-V role after a Windows OS installation

Hewlett Packard Enterprise provides a script that enables the Windows Hyper-V role using PowerShell commands or ServerManagerCmd.

To create a Windows scripted installation OS Build Plan that enables Hyper-V role after the OS installation

  1. Save a copy of the Hewlett Packard Enterprise provided Windows OS Build Plan, changing its name to reflect the Windows functionality being installed.

  2. At the end of the OS Build Plan, after the OS has been installed, add the Hewlett Packard Enterprise provided script Add Windows Hyper-V Role.

  3. After the Add Windows Hyper-V Role step, add a Reboot step and a Wait for HP SA Agent step with parameters as --production --atLeast=3 --atMost=30.


[NOTE: ]

NOTE: The Add Windows Hyper-V Role script can also be used as an example of how to add other Windows roles. Simply save it with a different name and modify it to suit your needs.