Skip to content

Instantly share code, notes, and snippets.

@Sorecchione07435
Created July 7, 2024 11:11
Show Gist options
  • Select an option

  • Save Sorecchione07435/81f89cef80fd3dff3aab8470aaf87e79 to your computer and use it in GitHub Desktop.

Select an option

Save Sorecchione07435/81f89cef80fd3dff3aab8470aaf87e79 to your computer and use it in GitHub Desktop.
uninstall.bat (VirtualBox 6.1.50)
@echo off
REM This script is for VirtualBox 6.1.50!
"%SystemRoot%\SysWOW64\regsvr32.exe" /s /u "%~dp0x64\x86\VBoxClient-x86.dll"
"%SystemRoot%\System32\regsvr32.exe" /s /u "%~dp0x64\VBoxC.dll"
"%~dp0x64\VBoxSDS.exe" /UnregService
"%SystemRoot%\SysWOW64\regsvr32.exe" /s /u "%~dp0x64\x86\VBoxProxyStub-x86.dll"
"%SystemRoot%\System32\regsvr32.exe" /s /u "%~dp0x64\VBoxProxyStub.dll"
"%~dp0Utils\x64\devcon.exe" remove "USB\VID_80EE&PID_CAFE"
sc delete "VBoxUSB"
sc stop "VBoxUSBMon"
sc delete "VBoxUSBMon"
sc delete "VBoxNetAdp"
"%~dp0Utils\x64\devcon.exe" remove "sun_VBoxNetAdp"
sc delete "VBoxNetLwf"
"%~dp0Utils\x64\netcfg.exe" -v -u "oracle_VBoxNetLwf"
sc stop "VBoxSup"
sc delete "VBoxSup"
rmdir /s /q "%~dp0Home"
mkdir "%~dp0Home"
REG delete HKCU\Environment /F /V VBOX_USER_HOME
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment