EWS Managed API: http://www.microsoft.com/download/en/details.aspx?id=13480 Glen Scale's cmdlets: http://www.messageops.com/downloads/MessageOps-Exchange-Module.zip To FIND and REMOVE GHOST Delegates: set-ExecutionPolicy RemoteSigned -force import-Module ./Messageops-Exchange.psd1 $myCred=Get-Credential -Credential myservice@mydomain.com $newprofile = new-messageops.ewsprofile -identity:myservice@mydomain.com -exchangeversion:exchange2010_sp1 -casURL:https://mycas.mydomain.com -Credential:$myCred Get-MessageOps.MailboxDelegateReport -p:$newprofile -id:bigboss@mydomain.com Get-MessageOps.MailboxDelegateInvalid -p:$newprofile -id:bigboss@mydomain.com Get-MessageOps.MailboxDelegateInvalidForwardingRules -p:$newprofile -id:bigboss@mydomain.com Remove-MessageOps.MailboxDelegateInvalidForwardingRules.unsupported -p:$newprofile -id:bigboss@mydomain.com Remove-MessageOps.MailboxDelegatesInvalid.UnSupported -p:$newprofile -id:bigboss@mydomain.com -------------------------------------------------------------------------- To query LDAP to find the delegate assignments for the "TerminatedUser", use either LDIFDE or CSVDE: LDIFDE.EXE -F delegateLDIFDE.TXT -D "OU=Testusers,DC=myDC,DC=mydomain,DC=com" -L "name,mail,PublicDelegatesBL" -R "(&mail=termuser@mydomain.com)(PublicDelegatesBL=*))" csvde -f delegateCSVDE.csv -s myDC -l "name,mail,PublicDelegatesBL" -r "(&mail=termuser@mydomain.com)(PublicDelegatesBL=*))" To REMOVE delegates for all "publicdelegatesBL": set-ExecutionPolicy RemoteSigned -force import-Module ./Messageops-Exchange.psd1 $myCred=Get-Credential -Credential myservice@mydomain.com $newprofile = new-messageops.ewsprofile -identity:myservice@mydomain.com -exchangeversion:exchange2010_sp1 -casURL:https://mycas.mydomain.com -Credential:$myCred Get-MessageOps.MailboxDelegateReport-p:$newprofile -id:bigboss@mydomain.com Get-MessageOps.MailboxDelegateForwardingRules -p:$newprofile -id:bigboss@mydomain.com Remove-MessageOps.MailboxDelegate -p:$newprofile -id:bigboss@mydomain.com -DelegateAddress:termuser@mydomain.com