Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
702 B

  1. @echo off
  2. IF %1==on goto RevokeON
  3. IF %1==oN goto RevokeON
  4. IF %1==On goto RevokeON
  5. IF %1==ON goto RevokeON
  6. IF %1==off goto RevokeOFF
  7. IF %1==ofF goto RevokeOFF
  8. IF %1==oFf goto RevokeOFF
  9. IF %1==oFF goto RevokeOFF
  10. IF %1==Off goto RevokeOFF
  11. IF %1==OfF goto RevokeOFF
  12. IF %1==OFf goto RevokeOFF
  13. IF %1==OFF goto RevokeOFF
  14. echo.
  15. echo SYNTAX: enablrvk [on ^| off]
  16. GOTO DONE
  17. :RevokeOFF
  18. setreg IgnoreRevocation on > NUL
  19. setreg OfflineOKCommercial off > NUL
  20. setreg OfflineOKCommercialNoBadUI off > NUL
  21. GOTO VIEW
  22. :RevokeON
  23. setreg IgnoreRevocation off > NUL
  24. setreg OfflineOKCommercial on > NUL
  25. setreg OfflineOKCommercialNoBadUI on > NUL
  26. :VIEW
  27. echo.
  28. setreg
  29. :DONE