Category Archives: Scripting

GAL Sync with Powershell

If you’re looking for a Global Address List synchronisation solution for Exchange that simply uses Powershell, look no further than this excellent script from fellow MVP Carol Wapshere. http://www.wapshere.com/missmiis/a-galsync-powershell-script The script doesn’t leverage the DirSync control (and hence doesn’t use deltas), which means that it isn’t perhaps as efficient as some of the full-blown solutions… Read More: GAL Sync with Powershell »

Bulk create sample AD users from CSV file using Powershell

Many moons ago I provided a CSV file containing 200 sample AD user accounts together with instructions on how to use CSVDE to import the accounts into AD. I often use these sample accounts in lab environments and for presentations. I thought it would be fun to write a small powershell script to read the… Read More: Bulk create sample AD users from CSV file using Powershell »

Powershell script to install Windows Updates from folder

  If you’ve been working with Exchange 2010 Service Pack 1 you will know that there are several pre-requisites to download and install. Once downloaded you end up with a bunch of *.msu (Windows Update) files.  If, like me, you have to install them on several servers and don’t like the idea of having to… Read More: Powershell script to install Windows Updates from folder »

Powershell script to Copy GPO Links

I was recently involved in a task to consolidate an OU structure.  Part of this involved moving user objects from one OU to another and re-linking GPOs that were linked to the old OU to the new OU.  There were a large number of links and I didn’t fancy adding them manually, so I spent… Read More: Powershell script to Copy GPO Links »

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 »