Ghost delegates in Exchange 2010

Since migrating our users to Exchange 2010 from Exchange 2003 we've had a few issues dotted around the organization where users are unable to edit or even view delegate information on their mailbox.

A quick check in powershell shows that there are indeed delegates but these are delegates whose AD account is no longer around...simple fix really.

To show all mailbox delegates try this...

Get-Mailbox | Where {$_.GrantSendOnBehalfTo -ne $null} | select Name, @{Name='GrantSendOnBehalfTo';Expression={[string]::join(";", ($_.GrantSendOnBehalfTo))}} | Export-CSV C:\SendOnBehalfTo.csv

The above will dump its output into a file on C: called SendOnBehalfTo.csv

If you are dealing with just one customer you can simplify this to...

Get-Mailbox <mailbox-alias>| Where {$_.GrantSendOnBehalfTo -ne $null} | select Name, @{Name='GrantSendOnBehalfTo';Expression={[string]::join(";", ($_.GrantSendOnBehalfTo))}} | ft -wrap

In any case to remove a ghosted delegate it is a sledgehammer approach I am afraid and the user will have to replace valid delegates too (No pain.  No gain)...

set-mailbox <mailbox-alias> -GrantSendOnBehalfTo $null

Any better ideas then please do post em.

Comments

Popular posts from this blog

PXE booting, MDT and 802.1x

Intune installation requires a wire...or does it?

Security Policy 1001