Sunday, October 3, 2010

MOSS 2007 - Policy for Web application Script

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