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.
 
 
 
 
 
 

30 lines
861 B

@echo off
setlocal enabledelayedexpansion
REM Apply permisions to sources shares for all main build lab machines
if exist %tmp%\buildsecure.log del /f %tmp%\buildsecure.log
for /f "tokens=1,3 delims=," %%a in (%RazzleToolPath%\buildmachines.txt) do (
if /i "%%b" == "main" (
for %%b in (sources idx01 idx02) do (
rmtshare \\%%a\%%b /remove everyone
rmtshare \\%%a\%%b /grant ntdev\rw_sd:r
rmtshare \\%%a\%%b /grant ntdev\ro_sd:r
rmtshare \\%%a\%%b>>%tmp%\buildsecure.log
)
)
if /i "%%b" == "beta1" (
for %%b in (sources idx01 idx02) do (
rmtshare \\%%a\%%b /remove everyone
rmtshare \\%%a\%%b /grant ntdev\rw_sd:r
rmtshare \\%%a\%%b /grant ntdev\ro_sd:r
rmtshare \\%%a\%%b>>%tmp%\buildsecure.log
)
)
)
endlocal