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…
Manually start messaging records management (MRM) processing
I have just created an online archive for a user that has far exceeded their mailbox quota and can no longer receive mail. In order to ensure their mailbox gets archived straight away, instead of waiting until the process is…
User PowerShell to get a recursive list of group members
Today I was asked to provide a list of recipients for a distribution list. The group was full of nested groups, so may have taken a little time to work out if it wasn’t for PowerShell. I used the Get-ADGroupMember…
Preparing a Windows 2012R2 domain for Exchange 2013
Today I am preparing a Windows 2012 R2 Active Directory domain for Exchange 2013. The process is pretty much the same as Exchange 2010: Extend the schema Populate Active Directory Prepare domain(s) The whole process only takes a few steps……
Set an out of office message using PowerShell
Today I received a call from a colleague who had forgotten to configure their out of office before going on holiday, asking if I could set it for them. Exchange 2010 allows me to do this easily using the Set-MailboxAutoReplyConfiguration…