Build a Windows 11 Intune Test Lab with Hyper-V
Introduction
Trying out a new device setup on a real laptop is risky. A wrong setting can interrupt someone’s work, and a device that has already been configured is hard to return to a clean state.
A virtual machine (VM) avoids much of this risk. It behaves like a separate computer but runs in a window on your own PC, so you can build it, break it and rebuild it without changing the host operating system.
This guide explains how to set up a test environment with Hyper-V, the virtualisation feature built into Windows. It covers which Windows editions can run Hyper-V, how to upgrade to or install the right one, how to create the VM, and how to join it to a work account.
What Is Hyper-V?
Hyper-V lets one computer, called the host, run one or more virtual machines. Each VM has its own operating system, settings and storage, providing an isolated environment for testing. What happens inside the VM generally does not affect the host, although network connections, shared resources and virtual machine integration features should still be considered.
For testing, this gives you three practical advantages:
- Safety: Settings, software and sign-in steps can be tried without changing the host operating system.
- Repeatability: A checkpoint, which saves a point-in-time state of the VM, lets you return to a known starting point and run the same steps again.
- Low cost: No spare physical computer is needed.
For example, an administrator can sign in to a VM the way a new employee will on their first day and see exactly what that person sees.
Which Windows Editions Support Hyper-V?
Hyper-V is not available on Windows Home. Microsoft’s guide to enabling Hyper-V lists Windows 10 and 11 Pro, Enterprise and Education as the supported editions. Pro is the usual choice for personal or student use, while Enterprise and Education are normally supplied through an organisation or a university.
| Edition | Hyper-V |
| Home | Not available |
| Pro | Available |
| Enterprise and Education | Available |
The host computer must also meet the Hyper-V system requirements. These include a 64-bit processor with second-level address translation (SLAT) and VM Monitor Mode extensions, virtualisation support switched on in the BIOS or UEFI, and at least 4 GB of RAM. More memory helps, because the host and the VM share it.
Running systeminfo in an elevated Command Prompt shows whether the computer meets the Hyper-V requirements.
Preparing the Host Computer
There are two ways to get a computer onto Windows Pro: upgrade the existing installation with a valid product key, or install Windows from a bootable drive. Either must be finished before Hyper-V is turned on.
1. Upgrade from Windows Home to Pro
A product key is a 25-character code used to activate Windows. For a Pro upgrade it can come from a retailer, from an organisation or university licence, or from a purchase in the Microsoft Store. It is best to avoid keys from unknown sellers, because they are often invalid or later withdrawn. Remember that activation and licensing rights are related but different: the applicable licence terms determine how Windows can be used.
Microsoft’s guide to upgrading from Home to Pro gives the steps. Windows must already be activated.
- Open Settings, select System, then Activation.
- If you have a Pro key, select Change product key, enter the key and select Next.
- If you do not have a key, expand Upgrade your edition of Windows and open the Microsoft Store to buy the upgrade. Microsoft describes this as the best route.
- Follow the prompts and restart when asked, then return to the Activation page and check that it reads Windows Pro.
Back up your files first, as Microsoft advises before any install or upgrade.
Figure 1 shows Windows 11 Pro and its activation status.

2. Alternative: Install Windows from a bootable drive
If the computer is new, empty or in need of a fresh start, a clean installation is the better choice. You need a USB drive of at least 8 GB. Microsoft recommends a blank one, because everything on the drive is deleted when the installer is written to it.
There are two common ways to create the drive: the Media Creation Tool and Rufus. For this setup, Rufus was used to prepare the bootable drive.
Media Creation Tool
- Open the Windows 11 download page.
- Select Download Now under Create Windows 11 Installation Media.
- Run the tool and choose a USB flash drive when asked.
The same page also offers an ISO file, which can be attached directly to the virtual machine later. Creating a bootable USB drive is not necessary when installing Windows inside Hyper-V.
Rufus
Rufus is a free utility that writes an ISO file to a USB drive and is also available as a portable application.
- Download the Windows ISO from Microsoft.
- Open Rufus.
- Pick the USB drive under Device.
- Choose the ISO with Select.
- Press Start.
Rufus normally proposes suitable settings, and GPT is the usual partition scheme for computers that use UEFI.
Figure 2 illustrates the Rufus configuration for creating a bootable USB drive.

To install from the drive:
- Insert it and restart the computer.
- Open the boot menu and choose the USB drive. The key differs between manufacturers, so check the computer’s documentation.
- Choose the language and keyboard, then select Install now.
- Enter the Pro key, or select I don’t have a product key and choose Windows Pro, then activate it later.
- Select Custom install and pick the disk. This erases the disk, so back up anything you need.
- Let the computer restart as needed, then complete the first-time setup.
3. Turn on Hyper-V
Once a supported edition is running, search for Turn Windows features on or off, tick Hyper-V, ensure both Hyper-V Platform and Hyper-V Management Tools are selected, choose OK and restart.
Alternatively, run the following command in PowerShell as an administrator and then restart:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
Hyper-V Manager then appears in the Start menu. If it does not, check that virtualisation is switched on in the BIOS or UEFI and that the hardware meets the requirements.
Figure 3 shows the Hyper-V Platform and Management Tools enabled.

Creating and Booting the Virtual Machine
The virtual machine boots from the same ISO file described above, so no USB drive is needed. Microsoft’s guide to creating a virtual machine uses the New Virtual Machine wizard.
- In Hyper-V Manager, select New from the Actions pane, then Virtual Machine.
- Name the VM and choose Generation 2. Microsoft recommends this unless you have a specific reason to use Generation 1.
- Assign startup memory. Windows 11 requires at least 4 GB, although 8 GB is preferable for a smoother testing experience if the host has sufficient memory.
- Select a virtual switch so the VM can reach the internet, which it needs for signing in with a work account. The Default Switch is generally the easiest option for basic internet connectivity on Windows client Hyper-V. An External Switch can be used when the VM needs to connect directly to the physical network.
- Create a virtual hard disk. Windows 11 requires at least 64 GB of storage; 100–128 GB is a more practical choice for testing applications and updates.
- Choose Install an operating system from a bootable image file and select the ISO.
- Select Finish.
Windows 11 also requires at least two virtual processors, Secure Boot and a TPM 2.0. Before the first start, open the VM’s settings:
- Go to Processor and assign at least two virtual processors. Four are preferable if the host has sufficient resources.
- Go to Security and ensure Enable Secure Boot is selected. Use the Microsoft Windows Secure Boot template.
- Tick Enable Trusted Platform Module to enable the virtual TPM.
To start the VM, right-click it, select Connect, then choose Action and Start. When the message asks you to press any key to boot from the installation media, do so, and follow the same installation steps as for a physical computer. If the VM does not boot, check that the ISO is attached and that Secure Boot is configured correctly.
Figure 4 shows the virtual machines listed in Hyper-V Manager.

Important licensing note: Enabling Hyper-V does not provide an additional Windows licence. The Windows operating system installed inside the virtual machine must also be appropriately licensed. Check Microsoft’s Windows licensing terms for your specific edition and usage scenario.
Joining the Virtual Machine to a Work Account
Once Windows has started, the VM can be joined to an organisation’s Microsoft Entra ID environment. You need a work account that the organisation allows to join devices.
Microsoft Entra registration and Microsoft Entra join are different device identity states. The following steps perform a Microsoft Entra join.
- Inside the VM, open Settings, then Accounts, then Access work or school, and select Connect.
- Choose Join this device to Microsoft Entra ID and sign in with the work account.
- Complete any prompts and restart if asked.
To check the result, return to Access work or school and confirm the account is listed.
You can also open Command Prompt or PowerShell inside the VM and run:
dsregcmd /status
For a cloud-only Microsoft Entra joined device, check that AzureAdJoined shows YES and DomainJoined shows NO. The output also displays the DeviceId and TenantId.
An administrator can open the Microsoft Entra admin centre, go to Devices and look for the VM.
Note: Microsoft Entra join does not automatically guarantee Microsoft Intune enrolment. Automatic Intune enrolment depends on organisational configuration, including the MDM user scope, appropriate licensing and enrolment restrictions. Check the Intune admin centre separately to confirm whether the VM has enrolled.
Microsoft’s overview of Microsoft Entra joined devices explains what happens during the join.
Important Considerations
- Edition first: Use Pro, Enterprise or Education before enabling Hyper-V. Home is not supported.
- Backups: Back up files before upgrading, and remember that a clean install erases the disk.
- Licensing: Use genuine and appropriate licences for both the host and guest Windows installations.
- Checkpoints: Create a checkpoint before joining the VM to Microsoft Entra ID. When repeating the test, restore the pre-join checkpoint. Review existing Microsoft Entra and Intune device records and clean up stale records where appropriate. Avoid routinely restoring checkpoints of previously joined devices, as this can cause device identity and registration problems.
- Internet access: The VM needs a network connection to sign in and communicate with Microsoft Entra ID and Intune.
- Intune testing: Hyper-V is useful for testing configuration profiles, compliance policies and application deployments. However, a virtual machine may not reproduce all physical-device scenarios, particularly hardware-dependent Windows Autopilot and TPM attestation processes.
Conclusion
A Hyper-V virtual machine gives you a convenient and repeatable place to test device setup without changing a physical computer. Check that the Windows edition supports Hyper-V, upgrade with a genuine licence or install from a bootable drive, configure the VM with the required resources and security settings, and then join it to a work account.
Once the environment works, it can be reused for further testing without putting a real device at risk. With checkpoints and appropriate device record management, administrators can create a practical test environment for Microsoft Entra ID and Intune scenarios.


