Step-by-step guide on how to install Windows Server Hyper-V with both the GUI and PowerShell:
Installing Hyper-V with the GUI:
- Log in to your Windows Server machine and open the Server Manager.
- Click on the “Add Roles and Features” option in the dashboard.
- In the “Add Roles and Features Wizard” window, click “Next” until you get to the “Server Selection” page.
- Make sure the correct server is selected, then click “Next.”
- On the “Server Roles” page, select “Hyper-V” and click “Next.”
- If prompted to add features that are required for Hyper-V, click “Add Features.”
- Review the information in the “Hyper-V” window and click “Next.”
- On the “Create Virtual Switches” page, you can choose to create a virtual switch or skip this step. Click “Next.”
- On the “Virtual Machine Migration” page, you can configure settings for virtual machine migration. Click “Next.”
- On the “Default Stores” page, specify the default location for virtual hard disks and virtual machine configuration files, or keep the default settings. Click “Next.”
- Review the settings on the “Confirmation” page and click “Install” to start the installation process.
- Once the installation is complete, you will need to restart the server to finish the process. Click “Close” to close the “Add Roles and Features Wizard.”
Installing Hyper-V with PowerShell:
- Open PowerShell with administrative privileges.
- Run the command:
Install-WindowsFeature -Name Hyper-V -IncludeManagementTools
- Wait for the installation to complete.
- Once the installation is complete, restart the server to finish the process.