Day 90 of new job and finally able to take a break to blog some code. Here is a little diddy that I had to use to grant recursive rights on a Exchange public folder to a distribution group.
# AD Setting for Multi Domain Forest
Set-ADServerSettings -ViewEntireForest $true
$pfs = get-publicfolder -identity "\DeptPublicFolder" -recurse
foreach ($pf in $pfs)
{
# Grant Distribution Group Owner Access to Each Public Folder. Use Groups Exchange Alias
Add-PublicFolderClientPermission -Identity $pf.identity -AccessRights owner -User "DistGroupAlias"
}
No comments:
Post a Comment