Skip to content

Instantly share code, notes, and snippets.

@mardahl
Last active January 19, 2022 14:15
Show Gist options
  • Save mardahl/2c70eb04f8f40dc74cfd2a73a4aa07b5 to your computer and use it in GitHub Desktop.
Save mardahl/2c70eb04f8f40dc74cfd2a73a4aa07b5 to your computer and use it in GitHub Desktop.
@echo off
REM Description: Small helper script to quickly start an AADSync but just double clicking on this script file.
REM Author: Michael Mardahl - github.com/mardahl
echo Starting AD Sync (Delta)...
powershell.exe -ex bypass -command "ipmo adsync;Start-ADSyncSyncCycle delta;"
echo Finished script execution.
pause
@mardahl
Copy link
Author

mardahl commented Apr 15, 2021

User must be a member of ADSyncAdmins and have permissions to execute PowerShell scripts locally on the server where Azure AD Connect is installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment