Category Archives: PowerShell

Powershell script to bulk convert linked mailboxes

As part of a recent domain migration, I had to convert a number of linked mailboxes to standard “user” mailboxes.  The well known method for converting linked mailboxes is to disconnect the mailbox, change the type and then reconnect.  This is fine you just have a few linked mailboxes to deal with, but not if… Read More: Powershell script to bulk convert linked mailboxes »

Powershell script to add group members based on sIDHistory

In a migration scenario it is sometimes useful to have a security and/or distribution Active Directory group in the target domain where the membership is comprised of migrated user objects.  Here’s a Powershell 2.0 script that I put together that populates the membership of a group based on a specific sIDHistory value.  It can be run… Read More: Powershell script to add group members based on sIDHistory »

Powershell script to show Exchange Server 2010 build information

This is an updated version of the script that I wrote for Exchange Server 2007.  The new version works for both E2007, E2010 as well as environments where both versions coexist. Ok, so the script is a bit messy and could use some polish – but, hey, it works for me 🙂 ########################################################## # Name:… Read More: Powershell script to show Exchange Server 2010 build information »

Powershell one-liner for gathering mailbox stats

  The Get-MailboxStatistics cmdlet is great for showing a range of detailed information about the mailboxes in your organisation.  Sometimes you need to pare down the information to just the really useful stuff (such as mailbox size, item count, etc.) and push it to a CSV file.  Here’s one that I find helpful:   get-exchangeserver… Read More: Powershell one-liner for gathering mailbox stats »

How to Find Exchange Server 2007 Build Information

The other day I applied Update Rollup 1 for Exchange Server 2007 Service Pack 2 in my test lab and wanted to check that the update was successfully applied.  Being something of a Powershell fan I first tried the command shown below: (get-exchangeserver MyE2K7Server).admindisplayversion The output showed Version 8.2 (Build 176.2), which is the same… Read More: How to Find Exchange Server 2007 Build Information »