- Do one of the following to open a Windows PowerShell session with elevated user rights.
- On the Windows desktop, right-click Windows PowerShell on the taskbar, and then click Run as Administrator.
- On the Windows Start page, type any part of the name Windows PowerShell. Right-click the shortcut for Windows PowerShell when it is displayed on the Start page in the Apps results, click Advanced, and then clickRun as Administrator. To pin the Windows PowerShell shortcut to the Start page, right-click the shortcut, and then click Pin to Start.
- On the Windows desktop, right-click Windows PowerShell on the taskbar, and then click Run as Administrator.
- Type the following, and then press Enter, where computer_name represents a remote computer on which you want to install Hyper-V. To install Hyper-V directly from a console session, do not include
-ComputerName <computer_name>
in the command.Install-WindowsFeature –Name Hyper-V -ComputerName <computer_name> -IncludeManagementTools -Restart
- To view a list of available and installed roles and features on the local server, type Get-WindowsFeature and then press Enter. The results of the cmdlet contain the command names of roles and features that have been added to this computer.
Note In Windows PowerShell 3.0, there is no need to import the Server Manager cmdlet module into the Windows PowerShell session before running cmdlets that are part of the module. A module is automatically imported the first time you run a cmdlet that is part of the module. Also, Windows PowerShell cmdlets are not case-sensitive. - When the installation is finished, verify installation by running the
Get-WindowsFeature
. If you installed Hyper-V remotely, include the ComputerName parameter (Get-WindowsFeature -ComputerName <computer_name>) to view a list of roles and features that are installed on the server.
Friday, 1 August 2014
Home »
Hyper-V
» To install the Hyper-V role using the Install-WindowsFeature cmdlet on Windows Server
0 comments:
Post a Comment