
Fabian Tech Tips

Hyper-V Command Line Configuration and Management
Feb 11
2 min read
0
3
0
Hyper-V Command Line Configuration and Management
This guide provides a comprehensive overview of setting up, configuring, and managing Microsoft Hyper-V using only command-line tools. PowerShell offers a robust and efficient way to interact with Hyper-V, enabling automation, scalability, and streamlined management of your virtualized environment1. Whether you're a seasoned system administrator or new to Hyper-V, this guide will equip you with the knowledge and commands to harness the power of Hyper-V without relying on graphical interfaces.
Setting Up Hyper-V via Command Line 2
Before diving into the command-line instructions, ensure your system meets the necessary requirements. These include:
A 64-bit processor with at least 1.4 GHz CPU speed2.
Second Level Address Translation (SLAT)2.
Support for VM Monitor Mode Extensions2.
Minimum of 4 GB RAM2.
Hardware-assisted virtualization enabled through Intel Virtualization Technology (Intel VT) or AMD Virtualization (AMD-V) technology2.
Hardware-enforced Data Execution Prevention (DEP) with the Intel XD bit (execute disable bit) or the AMD NX bit (no execute bit)2.
To confirm your system's compatibility, open PowerShell or Command Prompt and execute the following command:
PowerShell
systeminfo
Scroll down to the "Hyper-V Requirements" section and verify that all listed requirements have a "Yes" status2. If your system meets the requirements, proceed with the Hyper-V installation using any of the methods below.
Installing Hyper-V with PowerShell 3
PowerShell offers a streamlined approach to installing Hyper-V: 3
Open PowerShell as an administrator.
Execute the following cmdlet:
PowerShell
Enable-WindowsOptionalFeature