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 Synchronisations to Outlook Live

Applies to: Live@edu

Topic last modified: 2011-12-02

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

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

If you've never synchronised your OLSync configuration, make sure you follow the procedures in Perform a Full OLSync Synchronisation to Outlook Live.

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

Run the synchronisation 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 synchronisation 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 synchronisation 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.

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 synchronisation operations by using the FIM 2010 or ILM 2007 user interface

Synchronisation operations must be run in order. If they're not run in order, you may corrupt your metaverse data. Running the synchronisation 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 > Synchronisation 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 synchronise and then click Run.
  4. In the Run Management Agent dialogue box, select the operation you want to run and then click OK.
    Note   You can queue up more than one management agent synchronisation in the FIM 2010 or ILM 2007 user interface. Synchronisations 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 synchronisation was successful, click Operations. Synchronisation is successful when all values in the Status column say "success". If you get errors, see Troubleshoot Outlook Live Directory Sync.