Skip to content

Instantly share code, notes, and snippets.

@steadfasterX
Forked from LiamKarlMitchell/HideVirtualBox.bat
Last active March 28, 2024 08:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steadfasterX/b77eae19e285ec155bd46d509f269dfd to your computer and use it in GitHub Desktop.
Save steadfasterX/b77eae19e285ec155bd46d509f269dfd to your computer and use it in GitHub Desktop.
Hide Virtual Machine
rem Autorun script needed to run on every boot with admin perms!
rem Important: you need to use hideVBoxVM.py <name> on your VM as well, this cmd alone is not enough
@echo off
set TARGET="HPE"
@reg copy HKLM\HARDWARE\ACPI\DSDT\VBOX__ HKLM\HARDWARE\ACPI\DSDT\%TARGET%__ /s /f
@reg delete HKLM\HARDWARE\ACPI\DSDT\VBOX__ /f
@reg copy HKLM\HARDWARE\ACPI\FADT\VBOX__ HKLM\HARDWARE\ACPI\FADT\%TARGET%__ /s /f
@reg delete HKLM\HARDWARE\ACPI\FADT\VBOX__ /f
@reg copy HKLM\HARDWARE\ACPI\RSDT\VBOX__ HKLM\HARDWARE\ACPI\RSDT\%TARGET%__ /s /f
@reg delete HKLM\HARDWARE\ACPI\RSDT\VBOX__ /f
rem @reg add HKLM\HARDWARE\DESCRIPTION\System /v SystemBiosVersion /t REG_MULTI_SZ /d "%TARGET% - 1" /f
rem @reg add HKLM\HARDWARE\DESCRIPTION\System /v VideoBiosVersion /t REG_MULTI_SZ /d "%TARGET% - 1" /f
rem @reg add HKLM\HARDWARE\DESCRIPTION\System /v SystemBiosDate /t REG_MULTI_SZ /d "07/14/16" /f
@reg add "HKLM\HARDWARE\DEVICEMAP\Scsi\Scsi Port 0\Scsi Bus 0\Target Id 0\Logical Unit Id 0" /v Identifier /t REG_SZ /d "%TARGET% - 1" /f
@reg add "HKLM\SYSTEM\ControlSet001\Enum\USB\VID_80EE&PID_0030&MI_00\6&9592ecc&0&0000" /v FriendlyName /t REG_SZ /d "%TARGET% Webcam - USB2.0 HD UVC WebCam: USB2.0 HD" /f
@taskkill /f /im VBoxTray.exe
@exit
@ungeskriptet
Copy link

Where can I find hideVBoxVM.py?

@steadfasterX
Copy link
Author

Where can I find hideVBoxVM.py?

sorry for the late reply. pls find all here: https://code.binbash.rocks:8443/nonpublic/scripts/src/branch/main/hideVM

note: this is not shared public so you need to register first

note2: the script is not the latest version, I will add the updated one next week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment