Outlook Web App > For Exchange Online Administrators > Outlook Live for Live@edu > Implement Outlook Live Directory Sync for Live@edu > Deploy Outlook Live Directory Sync for Live@edu >

Perform Subsequent OLSync Data Synchronizations to Outlook Live for Live@edu

Applies to: Live@edu

Topic Last Modified: 2011-12-02

Dd490637.important(en-us,EXCHSRVCS.140).gifImportant:
Outlook Live Directory Sync (OLSync) is the synchronization solution for Microsoft Live@edu customers. If you are running a cloud-based e-mail service with Microsoft Office 365 for enterprises, you must use the Microsoft Online Services Directory Synchronization tool to synchronize your directories.

After you create or delete users, mail users, or contacts in your on-premises organization, you have to resynchronize Outlook Live Directory Sync (OLSync) data to keep your corresponding Outlook Live domain up-to-date.

If you've never synchronized your OLSync configuration, make sure you follow the procedures in Perform a Full OLSync Synchronization to Outlook Live for Live@edu.

There are two ways to resynchronize OLSync data. Using a Windows PowerShell script is the recommended approach.

Run the synchronization operations by using a Windows PowerShell script

When you run OLSync Setup, the script, StartSync.ps1, is copied to the following directory: <system drive>:\Program Files\Microsoft Identity Integration Server\SourceCode\Scripts. Use this script to automate synchronization operations with Windows PowerShell.

  1. On the computer that is running FIM 2010 or ILM 2007, click Start > All Programs > Windows PowerShell > Windows PowerShell.
  2. Navigate to <system drive>:\Program Files\Microsoft Identity Integration Server\SourceCode\Scripts.
  3. Run the following command:
    .\StartSync
    

Windows PowerShell will run each synchronization operation and then report on the status. All data in the Status column should say "success." If you get errors, see Troubleshoot Outlook Live Directory Sync for Live@edu.

To create a scheduled task that runs the StartSync.ps1 script, run the following command:

.\StartSync -schedule

This command creates a scheduled task that runs the StartSync.ps1 script every two hours from 8 A.M. to 8 P.M. You can change the frequency on the task by opening the StartSync.ps1 script and modifying the sc, mo, st, and du parameters in the following line of code:

schtasks.exe /create /sc HOURLY /MO 2 /st 08:00:00 /du 0012:00 /tn "$taskname" /tr "$PSHOME\powershell.exe -c $($myinvocation.mycommand.definition)"

For more information about the sc, mo, st, and du parameters and how to modify Schtask.exe, see How to use Schtasks.exe to Schedule Tasks in Windows Server 2003.

Run the synchronization operations by using the FIM 2010 or ILM 2007 user interface

Synchronization operations must be run in order. If they're not run in order, you may corrupt your metaverse data. Running the synchronization operations manually requires several similar steps and is error-prone. Therefore, it is a best practice to use the script as described in the first section of this topic. We include the manual steps here in case you need to refer to them for troubleshooting purposes.

  1. If you’re using FIM 2010, click Start > All Programs > Microsoft Forefront Identity Manager > Synchronization Service.
    If you’re using ILM 2007, click Start > All Programs > Microsoft Identity Integration Server > Identity Manager.
  2. Click Management Agents.
  3. Right-click the management agent that you want to synchronize and then click Run.
  4. In the Run Management Agent dialog box, select the operation you want to run, and then click OK.
    Note   You can queue up more than one management agent synchronizations in the FIM 2010 or ILM 2007 user interface. Synchronizations are run in the order that you set them. You can view a log of operations that have run by clicking the Operations tab.
    Run the following operations on these management agents in this order.

    Management agent Operation

    1. OnPremise

    Delta Import (Stage Only)

    2. Hosted

    Delta Import (Stage Only)

    3. OnPremise

    Delta Sync

    4. Hosted

    Delta Sync

    5. Hosted

    Export

    6. Hosted

    Delta Import (Stage Only)

    To verify that the synchronization was successful, click Operations. Synchronization is successful when all values in the Status column say "success". If you get errors, see Troubleshoot Outlook Live Directory Sync for Live@edu.