PowerShell/EWS: Searching for and deleting duplicate mailbox folders No ratings yet.

We’ve had some cases recently where an issue with migration has caused the migrated mailbox to contain duplicate folders (e.g. there may be two Calendar folders).  I have written a script that can process mailboxes and automatically remove duplicate folders. …

Read More

PowerShell: Search for a contact within a mailbox (or multiple mailboxes) No ratings yet.

The attached script shows how to use EWS to search for a particular contact (based on email address) within one or more mailboxes, writing any found occurrences to a log file.  You can process multiple mailboxes in a couple of…

Read More

EmailAddresses displayed as strings when connecting using the New-PSSession command No ratings yet.

When connecting using the Exchange Management Shell, the command (Get-Mailbox –Identity Administrator).EmailAddresses displays a result similar to: AddressString      : C=GB;A= ;P=ZONE LTD;O=Exchange;S=Administrator;G=Zone;ProxyAddressString : X400:C=GB;A= ;P=ZONE LTD;O=Exchange;S=Administrator;G=Zone;Prefix             : X400IsPrimaryAddress   : TruePrefixString       : X400 AddressString      : C=GB;A= ;P=ZONE LTD;O=Exchange;S=Administrator;ProxyAddressString : x400:C=GB;A= ;P=ZONE…

Read More