This is DOS script
REM Grant AD group full Control to each sharepoint web application listed in file wal.txt
REM 20101003
set ADgroupName=""
set url=""
rem this is for single web application
rem stsadm -o addpermissionpolicy -url %url% -userlogin %%ADgroupName%% -permissionlevel "Full Control"
FOR /F %%G IN (wal.txt) DO stsadm -o addpermissionpolicy -url %%G -userlogin %%ADgroupName%% -permissionlevel "Full Control"
pause
No comments:
Post a Comment