Count the number of mailboxes using PowerShell
If you need a quick and easy way to count the number of mailboxes in your Exchange environment then you can use the Get-Mailbox cmdlet: (Get-Mailbox -ResultSize Unlimited).Count
Attach a disconnected online archive to a user mailbox
I have been migrating some users to a new Active Directory domain and part of this has involved converting linked mailboxes to user mailboxes within Exchange. Reconnecting a disconnected mailbox doesn’t include the archive, this needs to be done manually….
Calendar requests sent to resource mailbox have no content
I have been trying to work out why calendar invitations sent to room mailboxes have the content stripped out. I now understand that this is applied to all resource mailboxes by default. I have changed this by using the Set-CalendarProcessing…
Change a mailbox type using PowerShell
Today I needed to convert an existing user mailbox into a room mailbox. I was able to do this quite easily using the Set-Mailbox cmdlet. Here is an example of how to do this: Set-Mailbox -Identity “boardroom” -Type Room Note:…
Import a PST file to a mailbox using PowerShell
Today I have been asked to import mail from a PST file into an existing mailbox in Exchange. Fortunately this is nice and easy using the New-MailboxImportRequest PowerShell cmdlet. Here is an example of how to use it: New-MailboxImportRequest -Mailbox dave@webbworld.local -FilePath…
Determine whether a user has an online archive using PowerShell
A user posted a question on Windows 2012 Forums asking if it is possible to determine whether or not a user has an online archive using PowerShell. This is indeed possible, and here is how: $Mailbox = Get-Mailbox user@yourdomain.com $Mailbox.ArchiveDatabase…
Delete a disconnected mailbox
Today I needed to remove a mailbox that has been disconnected, but this option isn’t available from the Exchange Management Console so I turned to PowerShell. First, I used the Get-MailboxStatistics cmdlet to generate a list of disabled mailboxes: Get-MailboxStatistics…
Determine if a mailbox is a linked mailbox using PowerShell
If you need to determine whether a mailbox is a linked mailbox using PowerShell you can achieve this with the Get-Mailbox cmdlet: $Mailbox = Get-Mailbox user@domain.com $Mailbox.RecipientTypeDetails
Schedule an out of office message using PowerShell
Today I had to configure an out of office message for a mailbox that needed to activate at a specific time. Exchange 2010 allows me to do this easily using the Set-MailboxAutoReplyConfiguration PowerShell cmdlet: Set-MailboxAutoReplyConfiguration <alias> -AutoReplyState Scheduled -ExternalAudience All -InternalMessage…