Как удалить hyper v windows server 2019

Remove hyper v role on windows server 2019 can be essential for reclaiming system resources, simplifying configurations, or preparing for a different virtualization solution. Hyper-V is a powerful tool for managing virtual machines (VMs) on Windows servers, but there are times when disabling or removing it becomes necessary. In this article, we’ll explore how to safely and efficiently remove the Hyper-V role from a Windows Server 2019 system, along with considerations, step-by-step guidance, and troubleshooting tips. Let’s dive into the process to ensure smooth uninstallation while protecting your system’s integrity and performance.

Why Remove the Hyper-V Role?

Resource Optimization: Hyper-V consumes considerable CPU, RAM, and storage resources. By removing it, these resources are freed, enhancing performance for other critical applications or roles.

System Simplification: Hyper-V adds complexity, especially if you’re not actively using virtual machines. Removing it helps simplify system management, updates, and troubleshooting.

Compatibility Needs: Some applications or tools may have compatibility issues with Hyper-V. Disabling Hyper-V can eliminate conflicts, allowing smoother operation of alternative virtualization solutions like VMware or VirtualBox.

Pre-Uninstallation Considerations

Before removing Hyper-V, here are key points to consider:

  1. Back-Up Virtual Machines: If you have virtual machines (VMs) running on Hyper-V, ensure they are backed up. Export your VMs to an external drive or another storage location to avoid data loss.
  2. Check Dependencies: Some services or applications may rely on Hyper-V. Assess your system to confirm that disabling Hyper-V won’t disrupt other important services.
  3. Consider Reboot Time: The server will require a reboot to complete the Hyper-V removal. Plan for a maintenance window to prevent unexpected downtime.
  4. User Access and Permissions: Ensure you have administrator privileges, as removing server roles requires elevated permissions.

Step-by-Step Guide to Removing the Hyper-V Role on Windows Server 2019

You can remove Hyper-V through the Server Manager or via PowerShell. Let’s go through both methods:

Method 1: Using Server Manager

  1. Open Server Manager:
    • Launch Server Manager from the Start menu or by pressing Win + S and typing “Server Manager.”
  2. Navigate to Manage:
    • In Server Manager, go to the “Manage” menu on the top-right corner.
  3. Remove Roles and Features:
    • Select Remove Roles and Features from the drop-down. This opens the wizard that allows you to remove server roles.
  4. Select Server:
    • Choose the server from which you wish to remove the Hyper-V role. In most cases, it’s the local server, so you can proceed by selecting it.
  5. Uncheck Hyper-V:
    • When you reach the “Roles” section, scroll down to find Hyper-V. Uncheck the box beside it, indicating that you want to remove the role.
  6. Confirm Removal:
    • The wizard will prompt you to confirm the removal. Review the options and click Next until you reach the “Remove” option. Click Remove to start the process.
  7. Restart the Server:
    • Once the wizard completes, it will prompt you to restart the server. Rebooting is necessary to finalize the removal.

Method 2: Using PowerShell

PowerShell offers a quick alternative to Server Manager, especially useful for advanced users or automated processes.

    1. Open PowerShell:
      • Launch PowerShell with administrator privileges by right-clicking on the Start menu and selecting Windows PowerShell (Admin).
    2. Run the Removal Command:
      • Enter the following command to remove the Hyper-V role:
        powershell   Copy code
        
        Uninstall-WindowsFeature -Name Hyper-V -Restart
      • This command uninstalls Hyper-V and automatically restarts the server. If you want more control over the reboot process, you can omit -Restart and manually restart the server after the uninstallation.

Post-Uninstallation Steps

After removing the Hyper-V role, take the following steps to verify the uninstallation and clean up any remaining artifacts:

    1. Verify Hyper-V Removal:
      • To confirm Hyper-V is uninstalled, open Server Manager or use PowerShell:
        powershell   Copy code
        
        Get-WindowsFeature -Name Hyper-V
      • This command will return the current state of the Hyper-V feature. If it shows as “Removed,” the process was successful.
    2. Check for Virtual Switches:
      • Removing Hyper-V doesn’t always delete virtual network switches. Open Network Connections in Control Panel and remove any unnecessary vEthernet switches associated with Hyper-V.
    3. Clean Up Storage:
      • If you had virtual machines or storage associated with Hyper-V, review your storage drives to remove any unneeded files, freeing up disk space.
    4. Update System Drivers:
      • Removing Hyper-V may affect certain drivers. Ensure all drivers are up-to-date to avoid potential conflicts or performance issues.

Troubleshooting Common Issues

During or after the removal process, you may encounter a few issues. Here are some solutions to the most common ones:

    1. Removal Failure Due to Dependencies:
      • If the removal fails due to dependency issues, check if other services are relying on Hyper-V. Disable these dependencies before attempting the removal again.
    2. Failed Restart:
      • Occasionally, the server might fail to restart during the Hyper-V removal. If this happens, manually reboot the server, then check if Hyper-V has been successfully uninstalled.
    3. Network Issues:
      • If you experience network issues post-uninstallation, double-check network settings and remove any orphaned virtual switches. Restarting the network adapter can also help resolve connectivity problems.

Benefits of Hyper-V Removal

By removing Hyper-V from your Windows Server 2019 environment, you gain several benefits:

  • Resource Reallocation: Without Hyper-V, system resources like CPU, RAM, and storage are freed up for other tasks.
  • Enhanced Performance: Some server functions may run more smoothly without the overhead associated with Hyper-V.
  • Simplified Maintenance: Fewer roles on the server reduce the complexity of updates, monitoring, and troubleshooting.

Conclusion

Removing the hyper-v role on windows server 2019 is a straightforward process that can bring significant performance and management benefits, particularly if virtualization is no longer needed. Using Server Manager or PowerShell, you can effectively disable and remove Hyper-V with minimal system disruption. Remember to back up any important data before starting, and follow best practices for a smooth uninstallation experience.

Microsoft Hyper-V is a type 1 hypervisor that you can install on Windows – including on Windows 10 and Windows Server 2019. In some scenarios, you may need to uninstall Hyper-V on your Windows machine. For example, VMware Workstation and Hyper-V are not compatible when installed on the same machine. The same issues occur with other type 2 hypervisors like VirtualBox.

Whatever your case, learn how to uninstall Hyper-V in Windows using two methods: via the GUI (graphical user interface) and via the CLI (command line interface).

Note: The processes explained for Windows 10 are applicable to Windows 11. The processes explained for Windows Server 2019 also work for Windows Server 2022 and 2016.

How to Disable Hyper-V in Windows 10 and 11 in Control Panel

Using the Control Panel to uninstall Hyper-V is the most convenient method and is preferred by most users for Windows 10 or 11. As a result, the Hyper-V feature is uninstalled completely.

To uninstall Hyper-V, do the following:

  1. Click Start, type Control Panel, and open it. Press Win+R. In the Run field, type appwiz.cpl and press Enter.
  2. In the Control Panel window, click Turn Windows features on or off.
  3. In the Windows Features window that opens, deselect the Hyper-V checkbox. Make sure that checkboxes in Hyper-V subfolders are deselected.

    How to uninstall Windows 10 Hyper-V in Control Panel

  4. Locate and deselect Virtual Machine Platform and Windows Hypervisor Platform.
  5. Hit OK to save settings and start the Hyper-V uninstallation process.
  6. Click Restart now to restart your computer to finish the process and uninstall Hyper-V.

    Hyper-V Windows 10 uninstallation - restarting Windows

How to Uninstall Hyper-V in Windows 10 and 11 with the Command Prompt

You can uninstall Hyper-V in the command line interface (CLI) just as with the previous method in the graphical user interface (GUI). This workflow works in both Windows 10 and Windows 11.

Check the Hyper-V installation status in the command line before you start to uninstall Hyper-V and to make sure that this hypervisor has been removed from your Windows system after you have uninstalled Hyper-V.

  1. Open the command line (CMD) as administrator. Open the Windows Start menu, type cmd, right-click the cmd entry, and click Run as administrator.
  2. Run systeminfo to check whether Hyper-V is installed.
    • If Hyper-V is not installed, in the Hyper-V requirements section, you see the names of the technologies required to install Hyper-V and the status of their availability on the machine.
    • If Hyper-V is installed, you should see the following message in the Hyper-V Requirements line:
      A hypervisor has been detected. Features required for Hyper-V will not be displayed.

      Checking the Hyper-V installation status in Windows

    • As an alternative, you can run msinfo32.exe to check whether Hyper-V is uninstalled in the GUI. The needed information is located in the System Summary section at the bottom of the item list.

      Hyper-V is installed in Windows

      Now, once you have verified that Hyper-V is installed, you can uninstall Hyper-V in Windows 10 by using the command line.

  3. Open PowerShell with administrative privileges (type PowerShell in the Start menu, right-click PowerShell, and click Run as administrator just as you do to run CMD).
  4. Run the following command to remove the Hyper-V feature from Windows 10:

    Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All

    Hyper-V Windows 10 uninstallation in PowerShell

  5. Do you want to restart the computer to complete this operation now?

    Type Y and hit Enter.

  6. Restart is required after executing this command. You can type N (No) and restart Windows manually.

Removing Hyper-V with DISM

DISM (Deployment Image Servicing and Management) is a tool for working with Windows images (.wim files) and installing/uninstalling Windows drivers, features, and packages.

Open PowerShell with administrative privileges, and run this command to disable Hyper-V:

DISM /Online /Disable-Feature:Microsoft-Hyper-V

How to uninstall Hyper-V in Windows 10 by using PowerShell and DISM

You may need to disable Secure Boot in UEFI/BIOS settings of a computer to finish the uninstallation process and uninstall Hyper-V. The sequence to disable Secure Boot depends on your hardware vendor and differs for different motherboard vendors and models.

How to Disable Hyper-V in BCDEDIT

You can change Hyper-V startup options when Windows boots without uninstalling Hyper-V completely. In this case, Hyper-V is installed but inactivated. Hyper-V is not booted before Windows boots if you disable Hyper-V by using the command line bcdedit tool. Bcdedit is the command line tool to manage Boot Configuration Data or BCD. BCD store is used to describe boot parameters for applications, add boot menu entries, etc.

If you use BCD to disable Hyper-V, the Hyper-V feature is disabled but not uninstalled completely from Windows. As you remember, Hyper-V is the first-type hypervisor that boots before Windows boots. The idea of using this method is to disable Hyper-V in boot configuration.

To use this method to disable Hyper-V, run the command prompt (CMD) as administrator and run the following command:

bcdedit /set hypervisorlaunchtype off

Windows 10 disable Hyper-V - using the command line bcdedit tool

Note: If you need to enable Hyper-V again, run bcdedit /set hypervisorlaunchtype on

For more convenience, you can create two boot entries for your Windows machine. One boot entry is used to boot the operating system with Hyper-V, and another one is used to boot the OS without Hyper-V.

  1. Run the following command to copy the default boot configuration to the new entry. “Hyper-V disable” is the name of the new boot entry in my case.

    bcdedit /copy {default} /d "Hyper-V disable"

  2. The following output message is displayed:

    The entry was successfully copied to {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}.

  3. Run the command to edit Hyper-V boot options for the new boot entry you have created. Copy the value in brackets {} from the above output message and paste to this command:

    bcdedit /set {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} hypervisorlaunchtype off

    Creating two boot menu options in Windows 10 with bcdedit

  4. You should see the message: The operation completed successfully.
  5. Edit the name of the default boot entry with Hyper-V to “Windows 10 Hyper-V” for more convenience:

    bcdedit /set {default} description "Windows 10 Hyper-V"

  6. Restart your computer.

Now you have two boot menu entries. Select “Hyper-V disable” to boot Windows without Hyper-V or select “Windows 10 Hyper-V” to boot Windows with Hyper-V.

How to disable Hyper-V Windows 10 – selecting options in the boot menu

You can also watch how to uninstall Hyper-V in Windows in this video:

How to Uninstall Hyper-V on Windows Server 2019

The process of removing Hyper-V in Windows Server 2019 is slightly different compared to Windows 10. In this section, we cover how to uninstall Hyper-V in Windows Server 2019. The workflow to uninstall Hyper-V on Windows Server 2022 and 2016 is identical.

Using the GUI

If your Windows Server is installed with the graphic experience and has a graphical user interface (GUI), then the easiest way to uninstall Hyper-V is using Server Manager and the Remove Roles and Features wizard.

  1. Open Server Manager (Start > Server Manager), and click Manage > Remove Roles and Features.

    Using the Remove Roles and Features wizard to uninstall Hyper-V in Windows Server 2016

    The Remove Roles and Features wizard opens.

  2. Before You Begin. There is nothing to configure at this step, but you can select the Skip this page by default option to avoid displaying this page in the future. Click Next to continue.
  3. Server Selection. Select a server from the server pool and select your server in the list. The server name is Hyper-V-Repl.test.net in my case. Hit Next at each step of the wizard to continue.

    Selecting a server on which you want to uninstall Hyper-V

  4. Server Roles. Deselect the Hyper-V checkbox in the list of roles to uninstall Hyper-V.

    Deselect the Hyper-V role to uninstall Hyper-V in Windows Server 2016 or 2019

  5. The popup window opens. Check the features that you are about to remove. Select Remove management tools (if applicable) to remove Hyper-V Manager Windows tools. Click Remove Features.

    Removing Hyper-V features in Windows Server

  6. Features. There is no need to remove custom features when you uninstall Hyper-V. Leave features configuration as is.

    The list of features in the Remove Roles and Features wizard

  7. Confirmation. Check all items that are going to be removed. Select the checkbox if you want your server to restart automatically when the Hyper-V role is removed. Otherwise, you need to restart Windows manually for changes to take effect and finish Hyper-V uninstallation. Click Remove to finish and uninstall Hyper-V.

    Restart of the server is required to uninstall Hyper-Vs

Using PowerShell

The PowerShell command to uninstall Hyper-V in Windows Server 2016, 2019, and 2022 is not the same as in Windows 10.

  1. Open PowerShell as administrator.
  2. Run the following command to uninstall Hyper-V on Windows Server 2016:

    Remove-WindowsFeature -Name Hyper-V

    Using PowerShell to uninstall Hyper-V in Windows Server 2016

  3. Restart the server to finish the removal process.

Issues That Can Occur

Sometimes issues may occur when you try to uninstall Hyper-V in Windows 10 and Windows Server 2016, 2019, or 2022. Let’s explain some common issues and offer recommendations to help fix these issues.

Case 1

If you see a message that Windows cannot uninstall Hyper-V components, try to check system files and their storage. Different error codes are displayed, for example, 0x800F0831, 0x80073701, etc. Use command line tools to fix this issue. Open the command line (CMD) with administrative privileges and run the following commands.

Dism /Online /Cleanup-Image /RestoreHealth

Dism.exe /online /Cleanup-Image /StartComponentCleanup

sfc /scannow

Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All

After executing these commands, logs are written to CBS.log and dism.log. Logs are useful for troubleshooting.

Case 2

Hyper-V is not uninstalled because a virtual network adapter or a virtual switch created by Hyper-V is present in a host Windows system. Remove virtual Hyper-V network adapters, and try to uninstall Hyper-V again. Here are some posts about Hyper-V network adapters and virtual switches from our blog.

Case 3

You disable Hyper-V but after reboot, Hyper-V is enabled again. A possible cause may be that a group policy is set to enable Hyper-V automatically on login after each boot. A system administrator should edit the group policy configuration to fix this issue. Remember, that Device Guard and Credential Guard are features using Hyper-V to work in Windows. Check Computer Configuration -> Administrative Templates -> System -> Device Guard in the group policy editor to make sure that there are no settings to force run Device Guard on a Windows machine.

Conclusion

Hyper-V can be uninstalled with a graphical user interface or a command line interface in Windows 10 and 11 and Windows Server 2016/2019/2022. The workflow is different for Windows 10 and Windows Server operating systems. If you have uninstalled Hyper-V, you can use another hypervisor to run virtual machines. Remember to back up your virtual machines to protect your data. NAKIVO Backup & Replication supports backup of VMware VMs  as well as Hyper-V VMs.

(

Мой ответ — скорее «для общего случая»

Для «Windows Server 2019, при установке служб RDS автоматически установился Hyper-V» склоняюсь к варианту:
==
Hyper-V — это следствие Virtual Desktop, которые являются неотделимой частью RDS (ибо это не RDP).
==

)

} Выключить Hyper-V — в управлении сервером отключить роль Hyper-V

Увы, примерно с Win 1703 этого недостаточно . . .

Например : WSL2

Вернее, это не требуется для ПО использущего API WHPX ( Windows Hypervisor Platform ):
— VirtualBox 6.0.X ( 6.1.X пока на стадии Beta1)
— эмуляторы Android
— QEMU

(

Или требуется, но для ускорения работы

)

C VMWare workstation — действительно надо отключать

C полгода назад в попытках, хотя бы в виде «матрёшки» VM-in-VM, запустить VMWare workstation
«внутри Hyper-V» перебрал чуть ли не все версии VMWare

И всё впустую Ж-(

(

Т.е. Hyper-V «внутри VMWare workstation» — можно, видел материалы.
А вот наоборот …

)

P.S.

«как отключить Hyper-V», Device Guard / Creditional Guard

VMware Workstation and Device/Credential Guard are not compatible
VMware Workstation and Device/Credential Guard are…

Device Guard and Credential Guard hardware Readiness Tool v3.6
Device Guard and Credential Guard hardware Readine…

How to Uninstall Hyper-V in Windows Server Using the Command Line

Hyper-V is a powerful virtualization platform built into Windows Server, but there are scenarios where you may want to remove it—perhaps to free up system resources, switch to another hypervisor, or simplify your server role. In this post, we’ll guide you through the process of uninstalling Hyper-V using the command line in Windows Server.


Step-by-Step Guide to Uninstall Hyper-V

There are two primary ways to uninstall Hyper-V via the command line: using PowerShell or using the DISM tool.

1. Using PowerShell

PowerShell is the most efficient way to remove Hyper-V:

Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All
  • This command disables the Hyper-V role.
  • You’ll be prompted to restart the server. Type Y and press Enter.

Alternatively, to completely remove it:

Uninstall-WindowsFeature -Name Hyper-V -IncludeManagementTools

This will remove both the Hyper-V platform and its management tools.

2. Using DISM (Deployment Image Servicing and Management)

You can also use DISM to uninstall Hyper-V:

dism /Online /Disable-Feature /FeatureName:Microsoft-Hyper-V-All
  • This command disables Hyper-V and requires a system restart.

Post-Uninstallation Tips

  • Make sure to reboot your server to finalize the removal.
  • If you encounter errors, verify if nested virtualization is enabled or if other dependent roles are installed.

Hyper-V is a preinstalled application on different Windows OS and Servers. There are users who love to use Hyper-V, on other hand there who don’t. If you are one of those who have enabled their Hyper-V and didn’t like it; now want to uninstall Hyper-V, then this will help.

Reasons behind disabling the application can be different errors, compatibility errors with Blue-stacks, or confusing user experience. No matter, what the problem is, you still can’t uninstall the application at all. Let me explain; Hyper-V comes preinstalled on different Windows editions like Professional, Enterprise, or Education (on Windows10).

You can only disable it; you can’t uninstall it. There is also the option to use alternatives, as VMware Workstation, Virtual Box… More About Hyper-V here.

Related: How to Fix BlueStacks Error on Hyper-V?

How to Uninstall Hyper-V on Windows?

uninstall hyper v

uninstall hyper v

Before we continue, if you want to check Hyper-V on your system, then you can go to Start and open RUN. Inside the RUN, type “msinfo32.exe” and press Enter. It will take you to system information, there in the Hyper-V section, you will find your Hyper-V enabled.

Here are some methods that will help you to disable/uninstall Hyper-V on Windows.

Use Control panel for disabling Hyper-V

Using the Control Panel option is the most preferred option by most of the users. For this purpose, you will go to Start > Control Panel, or you will type “appwiz.cpl” in RUN and will press Enter key.

uninstall HYPER-V with control panel

uninstall HYPER-V with control panel

Then you will open Turn Windows Features ON or OFF. Navigate and find the Hyper-V, uncheck the Hyper-V box, and click on OK. If you are using the new version of Windows 10 then you will also need to uncheck the Windows Hypervisor Platform too.

restart system- uninstall hyper-v

restart system- uninstall hyper-v

For changes to be made, a new pop will open with Applying changes. Then you will need to restart your system, for which another window will open as Windows completed the requested changes. You will click on Restart Now button and your system will restart.

Related: Download Hyper-V for Windows 10 for Free

CMD to Uninstall Hyper-V

CMD (command prompt) is another way for the purpose. If you want to use CLI (command line interface) instead of GUI (graphical user interface).

check hyper-v on windows

check hyper-v on windows

Run CMD as administrator and type “systeminfo” in CMD. There you will find the Hyper-V requirement section. If there is a Yes in front of your Hyper-V, then you will need to deactivate your Hyper-V by using the command below:

Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All

Paste the command in CMD and press Enter key. Then you will type “Y” again to confirm the command and press Enter. loading will take place, and you have successfully completed the operation.

Remove with DISM

Remove with DISM

Remove with DISM

DISM (Deployment Image Servicing and Management) is another method of uninstalling the application from your system. however; unlike the method above, DISM works with Windows images (.wim).

For this method, you will run CMD or PowerShell as administrator then will use the command below:

DISM /Online /Disable-Feature:Microsoft-Hyper-V

Loading will take place, and you have successfully uninstalled the application.

How to uninstall Hyper-V on Windows Server?

Since Windows Server has GUI (graphics user interface) to uninstall the app, then you won’t need to use any commands at all. For this purpose, you will start the Server Manager.

server manager dashboard

server manager dashboard

Then you will click on Manage in the menu. There you will find the Remove Role and Features option.

Before You Begin window will appear on your screen, you won’t need to perform any kind of configuration here. You will select Skip this page by default option to avoid further details and will click on Next.

select destination server on Windows server

select destination server on Windows server

In Server Selection, you will select a server from the server pool. Select the server and click on Next.

Here in Server Roles, you will uncheck the Hyper-V; in the pop-up of Remove features that require Hyper-V? and click on Remove Features.

Remove pictures the require hyper-v

Remove pictures the require hyper-v

Again you will be placed in Remove Features window, click on Next to uninstall the application.

Confirm removal selection will appear, click on Remove to start the uninstallation of the applications.

Note: all the application that will be uninstalled that includes Hyper-V will appear on your Confirm Removal Selection window, it didn’t then you will need to go back and uncheck the application and repeat the procedure again.

Related: Download VM Explorer for VMware and Hyper-V

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Сетевой контроллер wifi драйвер для windows 7
  • Реестр размер панели задач windows 10
  • Hp scanjet 4500c драйвер windows 10
  • Видео кодеки для windows 10 avi
  • Smart app control windows 11 как выключить