Update the Offline Address Book
By default the Offline Address Book (OAB) in Exchange 2010 only gets rebuilt every 24 hours. Also, Outlook clients only download the OAB once every 24 hours so it can seem like days before new entries are visible to end…
View the members of a Dynamic Distribution Group using PowerShell
If you need to preview the members of a Dynamic Distribution Group then you can do this easily using the Get-Recipient and Get-DynamicDistributionGroup cmdlets. The following example returns the list of members in the “Newport Users” DDG: $DDG = Get-DynamicDistributionGroup…
Create a Dynamic Distribution Group by Office
Using the Exchange Management Console in Exchange 2010 to create a Dynamic Distribution Group only allows for a limited number of conditions, such as State, Department or Company. As is often the case PowerShell is the way to get around this….
Office 365 – New-ExoPSSession error – The WinRM client cannot process the request. Basic authentication is currently disabled in the client configuration
While attempting to connect to Exchange Online using PowerShell the New-ExoPSSession cmdlet fails with the following error: New-ExoPSSession : Connecting to remote server outlook.office365.com failed with the following error message : The WinRM client cannot process the request. Basic authentication…
Connect to Office 365 Exchange Online using PowerShell
Any Exchange admin will be used to administering their environment with PowerShell. Here is how to connect to your Office 365 Exchange Online environment with just a few commands: $UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential…
Export Recoverable Deleted Items folder to a PST file
Today I had a user ask to restore some deleted messages from a mailbox. They were unable to see the messages anywhere in the mailbox, including the Deleted Items folder. To find out whether the messages were available to recover…
Export messages from a mailbox that were sent or received on or after a specific date
I have a requirement to export all messages from an Exchange mailbox that were sent or received after a specific date to a PST file. This was easy to achieve using the New-MailboxExportRequest cmdlet and specifying the dates within the…
Couldn’t find the Enterprise Organization container when using New-MailboxExportRequest
While using the New-MailboxExportRequest cmdlet in the Exchange Management Shell I encountered the following error: Couldn’t find the Enterprise Organization container This issue occurs if the user running the New-MailboxExportRequest command isn’t assigned the Mailbox Import Export role. There wasn’t…
Importing a PST fails when using New-MailboxImportRequest
I have a requirement to import some PST files into different mailboxes in Exchange. This is easy to do using the New-MailboxImportRequest PowerShell cmdlet however when it fails it isn’t easy to see why. Fortunately, we can get more information…
Use PowerShell to determine the total size of disconnected mailboxes in a mailbox database
I have been performing some housekeeping tasks which include removing old user mailboxes. While doing this I was curious how much disk space I would be saving so I took a few minutes to leverage the Get-MailboxStatistics cmdlet and…