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 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…
Search for and delete content within a mailbox using PowerShell
I was recently asked to delete a specific message from a user mailbox as the recall function did not work (the message had already been read). I was able to check if the message existed in the mailbox using the…
Determine the average mailbox size using PowerShell
I have been asked to provide a colleague with some statistics around our Exchange environment, including the average mailbox size. There is no way to determine this using the GUI so once again PowerShell comes to the rescue with…