Skip to content

Instantly share code, notes, and snippets.

@pandieme
Created July 4, 2024 18:35
Show Gist options
  • Save pandieme/a5822dc363afd01ec2eaf4684bed9901 to your computer and use it in GitHub Desktop.
Save pandieme/a5822dc363afd01ec2eaf4684bed9901 to your computer and use it in GitHub Desktop.
Set Entra ID (Azure AD) Connect Staging Mode with PowerShell
# 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