Skip to content

Instantly share code, notes, and snippets.

@jmaddington
Last active July 28, 2016 16:51
Show Gist options
  • Save jmaddington/987c3e52989ed3cad598b537abf0cb15 to your computer and use it in GitHub Desktop.
Save jmaddington/987c3e52989ed3cad598b537abf0cb15 to your computer and use it in GitHub Desktop.
# 20160728
# jm@jmaddington.com
#
# Short script to force AD Azure sync
#
# https://azure.microsoft.com/en-us/documentation/articles/active-directory-aadconnectsync-feature-scheduler/
#
# See latest at https://gist.github.com/jmaddington/987c3e52989ed3cad598b537abf0cb15
Import-Module ADSync
Start-ADSyncSyncCycle -PolicyType Delta
Write-Host "Press any key to continue ..."
$x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
Write-Host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment