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.

18 lines
682 B

  1. @if "%_echo%" == "" echo off
  2. set domains=africa europe fareast middleeast northamerica ntdev redmond segroup southamerica southpacific wingroup
  3. md template
  4. cacls template /g "administrators:f"
  5. cacls template /e /g "Creator owner:f"
  6. for %%i in (%domains%) do cacls template /e /g "%%i\%%i-winweb-winsd-rw:r" "%%i\%%i-winweb-winsd-ro:r" "%%i\sd_dev:r" "%%i\sd_ro:r"
  7. rem for %%i in (%domains%) do cacls template /e /g "%%i\%%i-winweb-winsd-ro:r"
  8. razacl /createsddl /sddlfile:sourceacl.txt /root:template
  9. razacl /createsddl /sddlfile:binariesacl.txt /root:template
  10. rem rd template
  11. echo sourceacl.txt and binariesacl.txt created. Move them to %_NTBINDIR%\tools