Skip to content

Instantly share code, notes, and snippets.

@jespernohr
Last active October 19, 2015 22:54
Show Gist options
  • Save jespernohr/5783962cf6d0f9742dc3 to your computer and use it in GitHub Desktop.
Save jespernohr/5783962cf6d0f9742dc3 to your computer and use it in GitHub Desktop.
# Synchronize your Active directory with o365/Azure
# On the computer that is running the Directory Sync tool, start PowerShell, type Import-Module DirSync, and then press ENTER.
Import-Module DirSync
# Start Delta synchronization
Start-OnlineCoexistenceSync
# check if fullsync is enabled
Get-ItemProperty –Path ‘hklm:\Software\Microsoft\MSOLCoexistence’ –Name FullSyncNeeded
# enabling full sync
Set-ItemProperty –Path ‘hklm:\Software\Microsoft\MSOLCoexistence’ –Name FullSyncNeeded –Value 1
# Start Full synchronization
Start-OnlineCoexistenceSync -FullSync
# Verify directory synchronization, open tool
# C:\Program Files\Windows Azure Active Directory Sync\SYNCBUS\Synchronization Service\UIShell\miisclient.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment