Advertisement
Tom_Neverwinter

Driver signing bat

Jul 27th, 2017
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. @echo off
  2. bcdedit /set loadoptions DDISABLE_INTEGRITY_CHECKS & bcdedit /set testsigning on
  3. cls
  4.  
  5. :MENU
  6.  
  7. ECHO.
  8. ECHO ...............................................
  9. ECHO PRESS 1 OR 2 to select your task, or 3 to EXIT.
  10. ECHO ...............................................
  11. ECHO.
  12. ECHO 1 - Enable driver signing
  13. ECHO 2 - Disable driver signing
  14. ECHO 3 - EXIT
  15. ECHO.
  16.  
  17.  
  18. SET /P M=Type 1, 2 or 3 then press ENTER:
  19. IF %M%==1 GOTO ENABLED
  20. IF %M%==2 GOTO DISABLED
  21. IF %M%==3 GOTO EOF
  22.  
  23. :ENABLED
  24. bcdedit.exe /set nointegritychecks on
  25. Disable driver signing
  26. GOTO MENU
  27. :DISABLED
  28. bcdedit.exe /set nointegritychecks off
  29. Enable driver signing
  30. :EOF
  31. GOTO MENU
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement