Set anonymous access for sharepoint list

18/12/2012 11:42

$list = $rootWeb.GetList($listUrl)

$list.AnonymousPermMask64 = [Microsoft.SharePoint.SPBasePermissions]::ViewListItems -bor [Microsoft.SharePoint.SPBasePermissions]::OpenItems -bor [Microsoft.SharePoint.SPBasePermissions]::ViewVersions -bor [Microsoft.SharePoint.SPBasePermissions]::Open -bor [Microsoft.SharePoint.SPBasePermissions]::UseClientIntegration

$list.Update()