Last active
January 19, 2022 14:15
-
-
Save mardahl/2c70eb04f8f40dc74cfd2a73a4aa07b5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 |
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
A small script that can be nice to put on a customer's remote desktop, where they have Azure AD Connect installed.
This way they donøt need to know the details of the metaverse or have to remember a PowerShell command.