Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»Virtualization»How to Uninstall VirtualBox on Windows

How to Uninstall VirtualBox on Windows

Anup ThapaBy Anup ThapaSeptember 28, 2022
how to uninstall virtualbox

As with any other application, VirtualBox can run into a number of issues, from file corruption and malware infection to degraded performance. And while it’s not a common occurrence, Windows Updates sometimes get interrupted due to system incompatibility with VirtualBox.

In such cases, the obvious solution is to uninstall and, if required, reinstall VirtualBox. This sounds easy enough, but things don’t always go smoothly. As such, we’ve detailed how to uninstall VirtualBox properly using various methods in this article.

Table of Contents

  • How to Uninstall VirtualBox on Windows
    • Through App Settings
    • Through Control Panel
    • Through CLI
  • How to Uninstall VirtualBox Completely?
    • Remove VirtualBox Files
    • Uninstall VirtualBox Network Components
    • Delete VirtualBox Registry Entries

How to Uninstall VirtualBox on Windows

The first couple of methods are easy to follow, but if they don’t work, you can also use the latter two CLI methods to force uninstall VirtualBox. If your issue isn’t resolved despite that, we recommend checking the final section for steps to perform a thorough removal.

Through App Settings

Windows 11 introduced the ability to uninstall applications easily via App Settings. Here are the necessary steps for this:

  1. Press Win + R, type ms-settings:appsfeatures, and press Enter. 
  2. Click on the triple-dot button next to VirtualBox and select Uninstall > Uninstall.
    uninstall-virtualbox-apps-and-features
  3. Accept the prompt to remove VirtualBox.

Through Control Panel

On older Windows versions, you can apply the traditional way of uninstalling applications via the Control Panel. Of course, you can use this method on Windows 11 as well if you want. With that said, here are the necessary steps:

  1. Press Win + R, type appwiz.cpl, and press Enter.
  2. Select VirtualBox and click on Uninstall.
    uninstall-virtualbox-programs-and-features
  3. Select Yes > Yes to accept the prompts and proceed with the installation.
Note: If you try to uninstall VirtualBox from the start menu, then the same steps are applicable for that as well. And secondly, if VirtualBox isn’t listed in Apps and Features, you can workaround the issue by downloading the installer for the same VirtualBox version you had before and using said installer to remove VirtualBox. In case of an incomplete uninstall, you may need to reinstall VirtualBox first before you can properly uninstall it again.

Through CLI

If you need to force-uninstall VirtualBox, you can use the Get-Package and Uninstall-Package cmdlets in PowerShell. Here are the steps for this:

  1. Press Win + R, type powershell, and press CTRL + Shift + Enter.
  2. EnterGet-Package and note the full VirtualBox name.
    get-package-virtualbox
  3. Replace packagename with the value from Step 2 and execute the following command:
    Uninstall-Package -Name "packagename"
    uninstall-package-virtualbox

Provided that VirtualBox is registered with WMI, you can also uninstall VirtualBox with the WMIC utility. Here are the necessary steps:

  1. Press Win + R, type cmd, and press CTRL + Shift + Enter.
  2. Type wmic product get name and press Enter.
    wmic-product-get-name-virtualbox
  3. It may take a minute to get the output. Once it shows up, note the full VirtualBox name.
  4. Replace program name with the value from Step 3 and execute the following command:
    product where name="program name" call uninstall
    uninstall-virtualbox-wmic
  5. Press Y if asked for a confirmation prompt.

How to Uninstall VirtualBox Completely?

If the CLI methods didn’t work either, then you’ll need to perform manual steps for complete removal. But before you start, let’s get the Windows Update incompatibility issue out of the way.

If you have any Android Emulators installed, such as LDPlayer, BlueStacks, Genymotion, Nox, Memu, etc., that are based on VirtualBox, you’ll want to remove these as we’ve found these to be the major cause for the incompatibility error.

When removing such emulators, the first step is obviously to uninstall them. You can do this using the uninstaller executable, via settings, or via the control panel. But the second part is also important. Often, the error will persist because some residual files remain on the system despite uninstalling. 

As such, you’ll want to clear the files from the locations like the Temp folder, AppData, ProgramData, etc., and check the registry. The steps will slightly differ depending on the emulator you’ve installed, but you can check the sections below to get a general idea of how to thoroughly remove an application.

Now, to remove all VirtualBox traces from your system, you’ll want to log in to an admin account first. If you plan to reinstall VirtualBox afterward, temporarily disabling security programs and clean booting might also be a good idea.

Remove VirtualBox Files

First, we’ll stop the VirtualBox background services and then proceed to delete the VirtualBox files from AppData, ProgramData, UserProfile, and System32. Here are the steps for this:

  1. Press Win + R, type services.msc, and press Enter.
  2. Stop the VirtualBox system service.
    stop-virtualbox-system-service
  3. If you want to delete the Virtual Machine files, navigate to the location where you stored them and delete them first.
  4. Now, press Win + R, type %userprofile%, and press Enter.
  5. Click on View > Show > Hidden Files.
    virtualbox-log-folder
  6. Now delete the .VirtualBox folder here. It might also be located at C:\Users\<username>\Appdata\Local\.
  7. Delete the Oracle folder from C:\Program Files.
  8. Also, delete the VirtualBox folder from C:\ProgramData.
  9. Finally, navigate to C:\Windows\system32\drivers and delete the following files:
    VBoxNetAdp6.sys
    VBoxNetLwf.sys
    VBoxSup.sys
    VBoxUSB.sys
    VBoxUSBMon.sys
    virtualbox-drivers-system32

Uninstall VirtualBox Network Components

Now, we’ll remove the VirtualBox network adapters and drivers. Here are the steps for this:

  1. Press Win + R, type devmgmt.msc, and press Enter.
  2. Select View > Show hidden devices.
  3. In the Network Adapters section, right-click the VirtualBox Adapter and select Uninstall device > Uninstall.
    uninstall-virtualbox-network-adapter
  4. Now, press Win + R, type ncpa.cpl, and press Enter.
  5. Right-click on the VirtualBox network and select Properties.
    virtualbox-host-only-network
  6. Select the VirtualBox Bridged Networking Driver and click Uninstall.
    virtualbox-ndis5-bridged-networking-driver

Delete VirtualBox Registry Entries

The final part of the puzzle is to clear all VirtualBox entries from the registry. Before making any changes to your registry, we highly recommend following the steps from the linked guide to back up your registry. This is important in case you need to revert any changes. Once that’s done, you can follow the steps listed below:

  1. Press Win + R, type regedit, and press Enter.
  2. Navigate to: Computer\HKEY_CLASSES_ROOT\Installer\Products\.
  3. Select the first key and check the Product Name. Repeat the same with the rest of the keys until you find the VirtualBox key.
    virtualbox-producticon-registry-key
  4. First, note down the key identifier and the product icon value.
  5. Then, right-click the VirtualBox key and select Delete > Yes.
    delete-virtualbox-registry-key
  6. Now, navigate to Computer\HKEY_CLASSES_ROOT\Installer\Features\.
  7. Use the values from Step 4 to ease your search and delete the VirtualBox key.
    hkcr-vbox-keys
  8. Delete VirtualBox keys from the following locations in the same manner:
    • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\
    • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\
    • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\
    • Computer\HKEY_CLASSES_ROOT\Installer\UpgradeCodes\
    • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Oracle
    • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
how-to
Anup Thapa
  • LinkedIn

Anup Thapa is a tech writer at TechNewsToday. He mostly writes informative articles, tutorials, and troubleshooting guides related to Windows systems, networking, and computer hardware. Anup has been writing professionally for almost 5 years, and tinkering with PCs for much longer. His love for all things tech started when he got his first PC over 15 years ago. It was a Pentium IV system running Windows XP on a single 256 MB stick. He spent his formative years glued to this PC, troubleshooting any hardware or software problems he encountered by himself. Professionally, Anup has had brief forays into a variety of fields like coding, hardware installation, writing, etc. In doing so, he's worked with people of different backgrounds and skill levels, from average joes to industry leaders and experts. This has given him not just a versatile skillset, but also a unique perspective for writing that enables him to concisely communicate complex information and solve his reader's problems efficiently. You can contact him at anup@technewstoday.com

Related Posts

virtual machine disks consolidation is needed

4 Ways to Fix “Virtual Machine Disks Consolidation is Needed”

December 27, 2022
virtualbox shared folder

How to Create Shared Folder on Virtualbox

November 29, 2022
failed to open a session for the virtual machine

How to Fix “Failed to Open a Session For The Virtual Machine” Error?

September 30, 2022
how to use vmware

How to Use VMware (Detailed Guide)

September 23, 2022
virtualize a physical machine vmware

How To Virtualize A Physical Machine With VMware

September 17, 2022
virtualbox-copy-paste-not-working

Virtualbox Copy Paste Not Working? Here’s How to Fix it

September 17, 2022
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
Best-1200W-PSU

8 Best 1200W PSUs for Extreme PC Builds in 2023

May 16, 2023
Best-1000W-PSU

10 Best 1000W PSUs in 2023

May 16, 2023
best-700w-psu

10 Best 700W PSUs for Gaming in 2023

May 14, 2023
You may also like
antimalware service executable high memory

Fix: Antimalware Service Executable High Memory

May 18, 2023
printer-printing-pink

Why is My Printer Printing Pink? 6 Ways to Fix It

May 18, 2023
how to clean usb c port

How to Clean USB-C Port Safely

May 17, 2023
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Our Team
  • Editorial Guidelines
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday, editor@technewstoday.com | Tech Central Pvt. Ltd.

Type above and press Enter to search. Press Esc to cancel.