Prepare Active Directory for Exchange 2007

To prepare active directory for Exchange 2007 you need to perform the following actions:

On the Schema master using an account with appropriate privileges navigate to the root of the installation media and run the following from the command prompt:

setup /pl

The command above prepares the legacy permissions. Next run:

setup /ps

This prepares the AD Schema. Next run the following command, where ORGANIZATION_NAME is the name of your Exchange Organization:

setup /PrepareAD /organizationName:ORGANIZATION_NAME

This creates the necessary OUs and security groups for Exchange. Then run:

setup /pd

This prepares the local domain for Exchange.

References:

http://technet.microsoft.com/en-us/library/bb125224(v=exchg.80).aspx

Advertisement

Find out which user owns an an Exchange email address using the Exchange Management Shell

In the Exchange Management Shell type the following where SEARCH_EMAIL_ADDRESS is the email address that you are looking for:

get-recipient -results unlimited | where {$_.emailaddresses -match “SEARCH_EMAIL_ADDRESS”}

 

 

Set an Exchange Activesync Policy for all users in a specific Company

Here is a command you can use to set a specific exchange activesync policy for all users in a specific company. This assumes that you have already set the company name in the ‘Company’ user attribute. Substitute YOUR_COMPANY_NAME with the company name the you have specified in the ‘Company’ user attribute for the users you wish to apply the policy to, and substitute YOUR_ACTIVESYNC_POLICY with the name of the activesync policy that you wish to set for this selection of users.   

Get-User -filter {Company -eq “YOUR_COMPANY_NAME”} | Set-CASMailbox -ActiveSyncMailboxPolicy(Get-ActiveSyncMailboxPolicy “YOUR_ACTIVESYNC_POLICY”).Identity

You can verify that the policy has been applied to the correct users by running the following command:

Get-CASMailbox | where{$_.ActivesyncMailboxPolicy -Match “YOUR_ACTIVESYNC_POLICY”} | ft Displayname, ActivesyncMailboxPolicy, Servername

If you want to view the activesync policies that are applied to all the users in your organisation simply run the following command:

Get-CASMailbox | ft Displayname, ActivesyncMailboxPolicy, Servername