Determine SendAs permissions in Ressource Forest (Exclude LinkedMasterAccount)
We found a script that seems to give us what we want, except we can't figure out a way to to filter out the linked master account as well. We're in a Exchange 2007 Sp1 Resource Forest Model so everyone (just about) shows up on this list.Get-Mailbox -resultsize unlimited | Get-ADPermission | where { ($_.ExtendedRights -like *Send-As*) -and ($_.IsInherited -eq $false) -and -not ($_.User -like NT AUTHORITY\SELF) } | Select Identity, User, Deny | Export-CSV test.csv -notypeinformation
September 30th, 2009 11:04pm

Hi,This can be done by simply adding a statement to the where part:Get-Mailbox -resultsize unlimited | Get-ADPermission | where { ($_.ExtendedRights -like “*Send-As*”) -and ($_.IsInherited -eq $false) -and -not ($_.User -like “NT AUTHORITY\SELF”) -and -not ($_.User -like “???”)} | Select Identity, User, Deny | Export-CSV test.csv -notypeinformationRegards,Johanblog: www.johanveldhuis.nl
Free Windows Admin Tool Kit Click here and download it now
October 5th, 2009 10:31pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics