Last active
January 19, 2022 14:15
-
-
Save mardahl/2c70eb04f8f40dc74cfd2a73a4aa07b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
User must be a member of ADSyncAdmins and have permissions to execute PowerShell scripts locally on the server where Azure AD Connect is installed.