Skip to content

Instantly share code, notes, and snippets.

@Sorecchione07435
Last active July 7, 2024 11:09
Show Gist options
  • Select an option

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

Select an option

Save Sorecchione07435/c6f2fbf0703a3f8cd810870fc9a878a1 to your computer and use it in GitHub Desktop.
install.bat (VirtualBox 6.1.50)
@echo off
REM This script is for VirtualBox 6.1.50!
sc create "VBoxSup" binpath= "%~dp0x64\drivers\vboxsup\VBoxSup.sys" type= kernel start= system error= normal displayname= "VBox SupDrv"
sc start "VBoxSup"
"%~dp0Utils\x64\netcfg.exe" -v -l "%~dp0x64\drivers\network\netlwf\VBoxNetLwf.inf" -c s -i "oracle_VBoxNetLwf"
sc query "VBoxNetLwf"
"%~dp0Utils\x64\devcon.exe" install "%~dp0x64\drivers\network\netadp6\VBoxNetAdp6.inf" "sun_VBoxNetAdp"
sc query "VBoxNetAdp"
sc create "VBoxUSBMon" binpath= "%~dp0x64\drivers\USB\filter\VBoxUSBMon.sys" type= kernel start= system error= normal displayname= "VBox USBMon"
sc start "VBoxUSBMon"
"%~dp0Utils\x64\devcon.exe" install "%~dp0x64\drivers\USB\device\VBoxUSB.inf" "USB\VID_80EE&PID_CAFE"
"%SystemRoot%\System32\regsvr32.exe" /s "%~dp0x64\VBoxProxyStub.dll"
"%SystemRoot%\SysWOW64\regsvr32.exe" /s "%~dp0x64\x86\VBoxProxyStub-x86.dll"
"%SystemRoot%\System32\regsvr32.exe" /s "%~dp0x64\VBoxC.dll"
"%SystemRoot%\SysWOW64\regsvr32.exe" /s "%~dp0x64\x86\VBoxClient-x86.dll"
"%~dp0Utils\VBoxManage.cmd" setproperty machinefolder "%~dp0Virtual Machines"
setx VBOX_USER_HOME "%~dp0Home"
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment