Source code of Windows XP (NT5)
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.

74 lines
1.9 KiB

  1. @ECHO OFF
  2. REM COPYRIGHT 1998 CITRIX CORPORATION
  3. REM SECURITY TOOL LAUNCHER
  4. REM CREATED APR 1998
  5. IF /I "%1"=="C" GOTO CDLETTER_OK
  6. IF /I "%1"=="D" GOTO CDLETTER_OK
  7. IF /I "%1"=="E" GOTO CDLETTER_OK
  8. IF /I "%1"=="F" GOTO CDLETTER_OK
  9. IF /I "%1"=="G" GOTO CDLETTER_OK
  10. IF /I "%1"=="H" GOTO CDLETTER_OK
  11. IF /I "%1"=="I" GOTO CDLETTER_OK
  12. IF /I "%1"=="J" GOTO CDLETTER_OK
  13. IF /I "%1"=="K" GOTO CDLETTER_OK
  14. IF /I "%1"=="L" GOTO CDLETTER_OK
  15. IF /I "%1"=="M" GOTO CDLETTER_OK
  16. IF /I "%1"=="N" GOTO CDLETTER_OK
  17. IF /I "%1"=="O" GOTO CDLETTER_OK
  18. IF /I "%1"=="P" GOTO CDLETTER_OK
  19. IF /I "%1"=="Q" GOTO CDLETTER_OK
  20. IF /I "%1"=="R" GOTO CDLETTER_OK
  21. IF /I "%1"=="S" GOTO CDLETTER_OK
  22. IF /I "%1"=="T" GOTO CDLETTER_OK
  23. IF /I "%1"=="U" GOTO CDLETTER_OK
  24. IF /I "%1"=="V" GOTO CDLETTER_OK
  25. IF /I "%1"=="W" GOTO CDLETTER_OK
  26. IF /I "%1"=="X" GOTO CDLETTER_OK
  27. IF /I "%1"=="Y" GOTO CDLETTER_OK
  28. IF /I "%1"=="Z" GOTO CDLETTER_OK
  29. GOTO USAGE
  30. :CDLETTER_OK
  31. IF "%PROCESSOR_ARCHITECTURE%"=="x86" SET PROCESSOR=I386
  32. IF "%PROCESSOR_ARCHITECTURE%"=="ALPHA" SET PROCESSOR=ALPHA
  33. ECHO %1:\SUPPORT\SECTOOL\%PROCESSOR%
  34. IF EXIST %1:\SUPPORT\SECTOOL\%PROCESSOR%\C2CONFIG.INF GOTO SETOOLEXISTS
  35. GOTO WRONGCD
  36. :SETOOLEXISTS
  37. ECHO Changing the security mode can have some SEVERE consequences! Using this
  38. ECHO tool incorrectly may leave your users UNABLE TO LOGON to the system!"
  39. PAUSE
  40. COPY %1:\SUPPORT\SECTOOL\%PROCESSOR%\C2*.* %SYSTEMROOT%\SYSTEM32\C2*.*
  41. %SYSTEMROOT%\SYSTEM32\C2CFG.EXE
  42. ERASE %SYSTEMROOT%\SYSTEM32\C2*.*
  43. GOTO EXIT
  44. :NOSECTOOL
  45. ECHO THE SECURITY CONFIGURATION FILES COULD NOT BE FOUND! PROGRAM TERMINATING.
  46. GOTO EXIT
  47. :USAGE
  48. ECHO Runs security tool from cd
  49. ECHO SECTOOL [letter]
  50. ECHO letter Specifies the cd-rom drive letter the setup files are located in.
  51. ECHO No colon is required.
  52. GOTO EXIT
  53. :WRONGCD
  54. ECHO The CD-ROM you entered does not appear to be the one containing the NT Setup
  55. ECHO files. Please enter the correct CD and try again.
  56. :EXIT