Hyper-v disable

Martin Ilo 20 Reputation points
2024-10-26T11:17:16.4666667+00:00

Hello, I am trying to disable hyper-v so I can work with VM for my school projects. I have already tried the Microsoft suggestions but nothing is working. Each time I type system info in cmd I get

"A hypervisor has been detected. Features required for Hyper-V will not be displayed."

I already tried the power shell version and the program turn windows feature on/off.

I would appreciate any other suggestions. Thanks a lot

Windows for business Windows Client for IT Pros Storage high availability Virtualization and Hyper-V
0 comments No comments
{count} votes

Accepted answer
  1. Marcin Policht 49,640 Reputation points MVP Volunteer Moderator
    2024-10-26T11:30:34.52+00:00

    Try the following:

    1. Disable Hyper-V Completely via Command Prompt

    • Open Command Prompt as Administrator and run:
           bcdedit /set hypervisorlaunchtype off
      
      • Restart your PC and check if Hyper-V is still active by running:
             systeminfo
        
      • If this works, Hyper-V should now be disabled. If not, continue with the following steps.

    2. Disable Windows Features via PowerShell

    Run the following command in PowerShell (Admin) to ensure all related virtualization features are disabled:

       Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All
       Disable-WindowsOptionalFeature -Online -FeatureName Containers
       Disable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
       Disable-WindowsOptionalFeature -Online -FeatureName Windows-Hypervisor-Platform
    
    • Reboot your machine after executing these commands.

    3. Check Windows Components (Optional Features)

    • Go to Control Panel > Programs > Turn Windows Features On or Off.
    • Ensure the following options are unchecked:
      • Hyper-V (and subcomponents)
      • Virtual Machine Platform
      • Windows Subsystem for Linux (WSL)
      • Windows Sandbox
      • Windows Hypervisor Platform
    • Restart your PC.

    4. Disable Device Guard and Credential Guard

    • Open Group Policy Editor (gpedit.msc):
      • Navigate to Computer Configuration > Administrative Templates > System > Device Guard.
      • Set "Turn on Virtualization Based Security" to Disabled.
    • Also, run the following in PowerShell (Admin) to confirm Device Guard is disabled:
           Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\DeviceGuard" -Name "EnableVirtualizationBasedSecurity" -Value 0
      
    • Restart your PC and verify using systeminfo.

    5. Check BIOS/UEFI Settings

    • Restart your computer and enter the BIOS/UEFI settings.
    • Look for the following options and disable them:
      • Virtualization Technology (VT-x / AMD-V)
      • Intel VT-d or AMD IOMMU
      • SVM Mode (for AMD processors)
      • Hyper-V or Virtualization-Based Security
    • Save the changes and reboot.

    6. Check for Conflicting Software

    • Some software (e.g., Docker, WSL, Android emulators) might re-enable Hyper-V features.
      • Uninstall or disable these tools temporarily to see if it resolves the issue.

    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    2 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Martin Ilo 20 Reputation points
    2024-10-27T15:17:35.12+00:00

    For me the 4th point was the solution to my problem thanks a lot for your time and effort!!!!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.