@echo off :BEGIN CLS echo Press 1 to Disable Patchguard and Driver Signing. echo Press 2 to Revert to default settings. %1 CHOICE /N /C:12 IF ERRORLEVEL ==2 GOTO TWO IF ERRORLEVEL ==1 GOTO ONE GOTO END :TWO bcdedit /set TESTSIGNING OFF bcdedit /debug OFF bcdedit /set loadoptions DENABLE_INTEGRITY_CHECKS bcdedit.exe /set {current} nx AlwaysOn GOTO END :ONE bcdedit /set TESTSIGNING ON bcdedit /debug ON bcdedit /dbgsettings SERIAL DEBUGPORT:1 BAUDRATE:115200 /start AUTOENABLE /noumex bcdedit /set loadoptions DDISABLE_INTEGRITY_CHECKS bcdedit.exe /set {current} nx AlwaysOff GOTO END :END echo Press 3 to reboot the computer now. %1 CHOICE /N /C:3 IF ERRORLEVEL ==3 GOTO THREE :THREE shutdown -r -t 5 -c "Rebooting in 5 seconds"