π ~1 min read
Table of contents
Symptom & Impact
Hyper-V role installation fails on Windows Server 2022 and prevents virtualisation workloads from being deployed or recovered on schedule.
Environment & Reproduction
Issue appears after enabling Hyper-V features when the host is in a pending reboot state or has incomplete servicing operations.
Get-WindowsFeature Hyper-V*
Get-ItemProperty 'HKLM:SOFTWAREMicrosoftWindowsCurrentVersionComponent Based ServicingRebootPending' -ErrorAction SilentlyContinue
Root Cause Analysis
A stale reboot requirement or interrupted CBS transaction blocks feature activation and leaves Hyper-V components partially configured.
Quick Triage
Validate host servicing health and feature state.
Get-WindowsFeature Hyper-V* | Select Name,InstallState
Get-WinEvent -LogName System -MaxEvents 30 | Select TimeCreated,Id,Message
Step-by-Step Diagnosis
Confirm pending reboot markers and servicing logs before remediation.
dism /online /get-features /format:table | findstr /I Hyper-V
Get-Content C:WindowsLogsCBSCBS.log -Tail 200

Solution β Primary Fix
Complete restart cycle, repair component store, and reinstall Hyper-V cleanly.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
shutdown /r /t 0
dism /online /cleanup-image /restorehealth
sfc /scannow
Install-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart

Solution β Alternative Approaches
Use offline servicing or remove and re-add role payload when corruption persists.
Uninstall-WindowsFeature Hyper-V -Restart
Install-WindowsFeature Hyper-V -IncludeManagementTools -Source WIM:D:sourcesinstall.wim:2
Verification & Acceptance Criteria
Hyper-V services run and VM creation succeeds without feature errors.
Get-Service vmms
Get-VMHost
Rollback Plan
If host instability occurs, remove Hyper-V role and restore pre-change backup.
Uninstall-WindowsFeature Hyper-V -Restart
wbadmin get versions
Prevention & Hardening
Stage cumulative updates before role enablement and enforce reboot checkpoints in maintenance workflows.
Get-HotFix | Sort InstalledOn -Desc | Select -First 10
Related Errors & Cross-Refs
Related: VMMS startup failures, virtual switch creation errors, and nested virtualisation misconfiguration.
Related tutorial: View the step-by-step tutorial for Windows Server 2022.
View all Windows Server 2022 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Microsoft Learn documentation for Hyper-V installation and Windows Server servicing best practices.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.