Exchange 2003 Recipient Based Scripts

The following are a number of Exchange 2003 based scripts that I have written over the years to help me with recipient management tasks within Active Directory. Each script where possible has a set of instructions - however, like many places I must stress the importance of TEST these scripts in a lab before you use them in a production environment. I cannot be held responsible for any issues that might occur from running one of the scripts below. In many cases they should be used as templates for you own specific tasks rather than to be used as is. Many of them were developed for very specific situations in my own environments.

Script Name
Category
Script Description
Download Location

CreateMailboxes-ForAccounts

Recipient Management

This script requires you to enter in the location of the accounts within an OU within Active Directory which DO NOT have Exchange Mailboxes - you will also be prompted for the name of the mailbox store that you wish to create the mailboxes within.

The when asked for the OU location in AD you should provide it in the format of OU=MyAccounts - if you have nested OU's the format would be OU=MyAccounts,OU=Mailboxes

Download

Get-DN

Recipient Management

This script will scan through an OU in Active Directory and dump all of the Legacy Exchange DN's for each user found in that OU to a Text File - you will be prompted twice when using this script - once to enter in the OU you wish to scan and then second time for the location of the Output file - the OU format is that same as used in the CreateMailboxes-ForAccount Script which is located above - this script is useful when used in conjuction with EXMERGE

Download

legacyExchangeDN-Change

Recipient Management

This script will at first prompt you for the location of a text file (including the name) which contains a lists of SamAccountNames; these MUST exist in your Active Directory Environment - it will then prompt you for a NEW legacy Exchange DN (typically in the format of /o=/ou=First Administrative Group/cn=Recipients/cn= - where you MUST ONLY change the value) - I cannot remember why I developed this script - but a migration from Exchange 5.5 to 2000 comes to mind - where I used EXMERGE to import a lot of user data between organisations. BE Very careful with this script

Download

Export-Addresses

Recipient Management

Script that will scan through your Active Directory and Export all of the e-mail addresses attached to each recipient to a CSV file - you will be prompted for the path and filename of the CSV file

Download

 


Add this page to your favorite Social Bookmarking websites

Last Updated (Monday, 22 December 2008 22:28)

 
English (United Kingdom)