Created
July 4, 2024 18:35
-
-
Save pandieme/a5822dc363afd01ec2eaf4684bed9901 to your computer and use it in GitHub Desktop.
Set Entra ID (Azure AD) Connect Staging Mode with PowerShell
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
# Get Entra ID Connect global settings | |
$ConnectSyncSettings = Get-ADSyncGlobalSettings | |
# See the value for StagingMode | |
$ConnectSyncSettings.Parameters | Where-Object Name -eq 'Microsoft.Synchronize.StagingMode').Value | |
# Set the value for staging mode to True | |
$ConnectSyncSettings.Parameters | Where-Object Name -eq 'Microsoft.Synchronize.StagingMode').Value = $true | |
# Set the value for staging mode to False | |
$ConnectSyncSettings.Parameters | Where-Object Name -eq 'Microsoft.Synchronize.StagingMode').Value = $false | |
# Apply the updated Entra ID Connect global settings | |
Set-ADSyncGlobalSettings -GlobalSettings $ConnectSyncSettings | |
# Check the AD Sync Scheduler | |
Get-ADSyncScheduler |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment