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.

126 lines
7.9 KiB

  1. @echo off
  2. set NOPRINT="%1"
  3. if "%1" == "" set NOPRINT=/r
  4. md e:\tst1 > NUL
  5. echo . > e:\tst1\a1.dat
  6. cacls e:\tst1\a1.dat /deny everyone > NUL
  7. if errorlevel 1 echo ERROR - command1 failed
  8. veracl e:\tst1\a1.dat %NOPRINT% everyone N > NUL
  9. if errorlevel 1 echo ERROR - command2 verification failed
  10. cacls e:\tst1\a1.dat /grant users:R > NUL
  11. if errorlevel 1 echo ERROR - command failed
  12. veracl e:\tst1\a1.dat %NOPRINT% BUILTIN\users R > NUL
  13. if errorlevel 1 echo ERROR - command3 verification failed
  14. cacls e:\tst1\a1.dat /grant users:F > NUL
  15. if errorlevel 1 echo ERROR - command4 failed
  16. veracl e:\tst1\a1.dat %NOPRINT% BUILTIN\users F > NUL
  17. if errorlevel 1 echo ERROR - command5 verification failed
  18. cacls e:\tst1\a1.dat /grant users:C > NUL
  19. if errorlevel 1 echo ERROR - command6 failed
  20. veracl e:\tst1\a1.dat %NOPRINT% BUILTIN\users C > NUL
  21. if errorlevel 1 echo ERROR - command7 verification failed
  22. cacls e:\tst1\a1.dat /grant users:R > NUL
  23. if errorlevel 1 echo ERROR - command8 failed
  24. veracl e:\tst1\a1.dat %NOPRINT% BUILTIN\users R > NUL
  25. if errorlevel 1 echo ERROR - command9 verification failed
  26. cacls e:\tst1\a1.dat /replace users:R > NUL
  27. if errorlevel 1 echo ERROR - command10 failed
  28. veracl e:\tst1\a1.dat %NOPRINT% BUILTIN\users R > NUL
  29. if errorlevel 1 echo ERROR - command11 verification failed
  30. cacls e:\tst1\a1.dat /replace users:F > NUL
  31. if errorlevel 1 echo ERROR - command12 failed
  32. veracl e:\tst1\a1.dat %NOPRINT% BUILTIN\users F > NUL
  33. if errorlevel 1 echo ERROR - command13 verification failed
  34. cacls e:\tst1\a1.dat /replace users:C > NUL
  35. if errorlevel 1 echo ERROR - command14 failed
  36. veracl e:\tst1\a1.dat %NOPRINT% BUILTIN\users C > NUL
  37. if errorlevel 1 echo ERROR - command15 verification failed
  38. cacls e:\tst1\a1.dat /replace users:N > NUL
  39. if errorlevel 1 echo ERROR - command16 failed
  40. veracl e:\tst1\a1.dat %NOPRINT% BUILTIN\users N > NUL
  41. if errorlevel 1 echo ERROR - command17 verification failed
  42. cacls e:\tst1\a1.dat /revoke users > NUL
  43. if errorlevel 1 echo ERROR - command18 failed
  44. veracl e:\tst1\a1.dat %NOPRINT% > NUL
  45. if errorlevel 1 echo ERROR - command19 verification failed
  46. cacls e:\tst1\a1.dat /deny users > NUL
  47. if errorlevel 1 echo ERROR - command20 failed
  48. veracl e:\tst1\a1.dat %NOPRINT% BUILTIN\users N > NUL
  49. if errorlevel 1 echo ERROR - command21 verification failed
  50. cacls e:\tst1\a1.dat /edit /grant everyone:R > NUL
  51. if errorlevel 1 echo ERROR - command22 failed
  52. veracl e:\tst1\a1.dat %NOPRINT% BUILTIN\users N everyone R > NUL
  53. if errorlevel 1 echo ERROR - command23 verification failed
  54. cacls e:\tst1\a1.dat /edit /grant everyone:F > NUL
  55. if errorlevel 1 echo ERROR - command24 failed
  56. veracl e:\tst1\a1.dat %NOPRINT% BUILTIN\users N everyone F > NUL
  57. if errorlevel 1 echo ERROR - command25 verification failed
  58. cacls e:\tst1\a1.dat /edit /grant everyone:C > NUL
  59. if errorlevel 1 echo ERROR - command26 failed
  60. veracl e:\tst1\a1.dat %NOPRINT% BUILTIN\users N everyone F > NUL
  61. if errorlevel 1 echo ERROR - command27 verification failed
  62. cacls e:\tst1\a1.dat /edit /grant everyone:R > NUL
  63. if errorlevel 1 echo ERROR - command28 failed
  64. veracl e:\tst1\a1.dat %NOPRINT% BUILTIN\users N everyone F > NUL
  65. if errorlevel 1 echo ERROR - command29 verification failed
  66. cacls e:\tst1\a1.dat /edit /replace everyone:R > NUL
  67. if errorlevel 1 echo ERROR - command30 failed
  68. veracl e:\tst1\a1.dat %NOPRINT% BUILTIN\users N everyone R > NUL
  69. if errorlevel 1 echo ERROR - command31 verification failed
  70. cacls e:\tst1\a1.dat /edit /replace everyone:F > NUL
  71. if errorlevel 1 echo ERROR - command32 failed
  72. veracl e:\tst1\a1.dat %NOPRINT% BUILTIN\users N everyone F > NUL
  73. if errorlevel 1 echo ERROR - command33 verification failed
  74. cacls e:\tst1\a1.dat /edit /replace everyone:C > NUL
  75. if errorlevel 1 echo ERROR - command34 failed
  76. veracl e:\tst1\a1.dat %NOPRINT% BUILTIN\users N everyone C > NUL
  77. if errorlevel 1 echo ERROR - command35 verification failed
  78. cacls e:\tst1\a1.dat /edit /replace everyone:N > NUL
  79. if errorlevel 1 echo ERROR - command36 failed
  80. veracl e:\tst1\a1.dat %NOPRINT% everyone N BUILTIN\users N > NUL
  81. if errorlevel 1 echo ERROR - command37 verification failed
  82. cacls e:\tst1\a1.dat /edit /revoke everyone > NUL
  83. if errorlevel 1 echo ERROR - command38 failed
  84. veracl e:\tst1\a1.dat %NOPRINT% BUILTIN\users N > NUL
  85. if errorlevel 1 echo ERROR - command39 verification failed
  86. cacls e:\tst1\a1.dat /edit /deny everyone > NUL
  87. if errorlevel 1 echo ERROR - command40 failed
  88. veracl e:\tst1\a1.dat %NOPRINT% everyone N BUILTIN\users N > NUL
  89. if errorlevel 1 echo ERROR - command41 verification failed
  90. cacls e:\tst1\a1.dat /grant users:R everyone:C > NUL
  91. if errorlevel 1 echo ERROR - command42 failed
  92. veracl e:\tst1\a1.dat %NOPRINT% BUILTIN\users R everyone C > NUL
  93. if errorlevel 1 echo ERROR - command43 verification failed
  94. cacls e:\tst1\a1.dat /replace users:C everyone:R replicator:C > NUL
  95. if errorlevel 1 echo ERROR - command44 failed
  96. veracl e:\tst1\a1.dat %NOPRINT% BUILTIN\users C everyone R BUILTIN\replicator C > NUL
  97. if errorlevel 1 echo ERROR - command45 verification failed
  98. cacls e:\tst1\a1.dat /revoke users everyone replicator "power users" > NUL
  99. if errorlevel 1 echo ERROR - command46 failed
  100. veracl e:\tst1\a1.dat %NOPRINT% > NUL
  101. if errorlevel 1 echo ERROR - command47 verification failed
  102. cacls e:\tst1\a1.dat /deny users everyone replicator "power users" "backup operators" > NUL
  103. if errorlevel 1 echo ERROR - command48 failed
  104. veracl e:\tst1\a1.dat %NOPRINT% BUILTIN\users N everyone N BUILTIN\replicator N "BUILTIN\power users" N "BUILTIN\backup operators" N > NUL
  105. if errorlevel 1 echo ERROR - command49 verification failed
  106. cacls e:\tst1\a1.dat /edit /replace users:R everyone:C > NUL
  107. if errorlevel 1 echo ERROR - command50 failed
  108. veracl e:\tst1\a1.dat %NOPRINT% BUILTIN\replicator N "BUILTIN\power users" N "BUILTIN\backup operators" N BUILTIN\users R everyone C > NUL
  109. if errorlevel 1 echo ERROR - command51 verification failed
  110. cacls e:\tst1\a1.dat /edit /replace users:C everyone:R replicator:C > NUL
  111. if errorlevel 1 echo ERROR - command52 failed
  112. veracl e:\tst1\a1.dat %NOPRINT% "BUILTIN\power users" N "BUILTIN\backup operators" N BUILTIN\users C everyone R BUILTIN\replicator C > NUL
  113. if errorlevel 1 echo ERROR - command53 verification failed
  114. cacls e:\tst1\a1.dat /edit /revoke users everyone replicator "power users" > NUL
  115. if errorlevel 1 echo ERROR - command54 failed
  116. veracl e:\tst1\a1.dat %NOPRINT% "BUILTIN\backup operators" N > NUL
  117. if errorlevel 1 echo ERROR - command55 verification failed
  118. cacls e:\tst1\a1.dat /edit /deny users everyone replicator "power users" "backup operators" > NUL
  119. if errorlevel 1 echo ERROR - command56 failed
  120. veracl e:\tst1\a1.dat %NOPRINT% BUILTIN\users N everyone N BUILTIN\replicator N "BUILTIN\power users" N "BUILTIN\backup operators" N > NUL
  121. if errorlevel 1 echo ERROR - command57 verification failed
  122. del e:\tst1\a1.dat
  123. rd e:\tst1