Installing the Hyper-V Role Using PowerShell

Another option for installing the Hyper-V Server role is to using PowerShell. PowerShell is convenient in that with just a handful of line commands, a server is built, simplifying the installation process, and allowing organizations to more consistently build servers because the PowerShell installation script can be simply copy/pasted or run as a PS1 PowerShell script.

To install the Hyper-V role using PowerShell, do the following

1. From Server Manager, click the Tools option in the upper right of the console and choose Windows PowerShell to launch PowerShell.

2. In PowerShell, type Install-WindowsFeature –Name Hyper-V –IncludeManagementTools.

Get Windows Server® 2012 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.