Trigger GAL sync to personal contacts

Hi,

We run Exchange 2010 and have a problem with the sync of GAL to personal contact in Outlook 2010.

At our company we have a scheduled task on our DC that runs every morning. The scheduled task includes a Powershell script that adds 2 values to an user's "ShowInAddressBook" attribute (because we have 2 OUs that are used for 1 GAL):

Import-Module 'ActiveDirectory'
$users = $i = $null  
$users = Get-ADUser -Filter "showInAddressBook -ne 'CN=CompanyName - All Users,CN=All Address Lists,CN=Address Lists Container,CN=CompanyName,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=CompanyName,DC=internal'" -Searchbase "OU=User Accounts,OU=UserObjects,DC=CompanyName,DC=internal"
    if ($users -eq $null){
        "no user accounts needed modification"
    }
    else {
        ForEach($user in $users){
            "modifying $($user.name)"
            Set-ADUser -Identity $user.distinguishedName -Add @{showInAddressBook="CN=CompanyName - All Users,CN=All Address Lists,CN=Address Lists Container,CN=CompanyName,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=CompanyName,DC=internal"}
            Set-ADUser -Identity $user.distinguishedName -Add @{showInAddressBook="CN=CompanyName - GAL,CN=All Global Address Lists,CN=Address Lists Container,CN=CompanyName,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=CompanyName,DC=internal"}
            $i++
        }
        "modified $i users"
    }

Can this script trigger a GAL sync to personal contacts of outlook users?

I hope you can help me out.

Thanks in advance.

Ben

June 25th, 2015 4:03am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics