Skip to content

Instantly share code, notes, and snippets.

@f-bader
Created December 7, 2017 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save f-bader/5da494525f509be89041bd67e70af85e to your computer and use it in GitHub Desktop.
Save f-bader/5da494525f509be89041bd67e70af85e to your computer and use it in GitHub Desktop.
Import-Module ADSync
# Your AAD Credentials
$Credential = Get-Credential
# Disable the deletion threshold
Disable-ADSyncExportDeletionThreshold -AADCredential $Credential
# Sync changes
Start-ADSyncSyncCycle -PolicyType Delta
# Enable deletion threshold with default value of 500
Enable-ADSyncExportDeletionThreshold -AADCredential $Credential -DeletionThreshold 500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment