All pastes #2107679 Raw Edit

Anonymous

public text v1 · immutable
#2107679 ·published 2012-01-30 08:03 UTC
rendered paste body
@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"