Created
May 21, 2025 08:21
-
-
Save Apoc70/3709a321340269ca1706783682dfb5c1 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
| # run on server with EntraConnect installed | |
| # name of on-premises AD EntraConnect connector | |
| $adConnector = "varunagroup.de" | |
| # name of Entra ID EntraConnect connector | |
| $aadConnector = "varunagroup.onmicrosoft.com - AAD" | |
| # do the magic stuff | |
| Import-Module adsync | |
| $c = Get-ADSyncConnector -Name $adConnector | |
| $p = New-Object Microsoft.IdentityManagement.PowerShell.ObjectModel.ConfigurationParameter "Microsoft.Synchronize.ForceFullPasswordSync", String, ConnectorGlobal, $null, $null, $null | |
| $p.Value = 1 | |
| $c.GlobalParameters.Remove($p.Name) | |
| $c.GlobalParameters.Add($p) | |
| $c = Add-ADSyncConnector -Connector $c | |
| # have you turned it off andon again | |
| Set-ADSyncAADPasswordSyncConfiguration -SourceConnector $adConnector -TargetConnector $aadConnector -Enable $false | |
| Set-ADSyncAADPasswordSyncConfiguration -SourceConnector $adConnector -TargetConnector $aadConnector -Enable $true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment