25,161 questions
Is it safe to uninstall and reinstall Azure AD Connector if I have exported the config?
KAM9774
0
Reputation points
I have a multi-connector setup and a couple of the connectors are getting password hash sync issues. Error 611. However, removing and reenabling PHS isn't working. Azure AD Connector is version 2.2.1.0
Also using the below script isn't working gives me an error.
Script
Import-Module adsync
$adConnector = "Domain name"
$aadConnector = "extensible2 name"
$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
# Disable password sync through Azure AD Connect
Set-ADSyncAADPasswordSyncConfiguration `
-SourceConnector $adConnector `
-TargetConnector $aadConnector -Enable $false
# Enable synchronization and run the full password hash sync
Set-ADSyncAADPasswordSyncConfiguration `
-SourceConnector $adConnector `
-TargetConnector $aadConnector -Enable $true
Error:
New-Object : Cannot find type [Microsoft.IdentityManagement.PowerShell.]: verify that the assembly containing this type is loaded. At line:5 char:6 + $p = New-Object Microsoft.IdentityManagement.PowerShell. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException + FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand ObjectModel.ConfigurationParameter : The term 'ObjectModel.ConfigurationParameter' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:6 char:9 + ObjectModel.ConfigurationParameter ` + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (ObjectModel.ConfigurationParameter:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException The property 'Value' cannot be found on this object. Verify that the property exists and can be set. At line:9 char:1 + $p.Value = 1 + ~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : PropertyNotFound False Exception calling "Add" with "1" argument(s): "Value cannot be null. Parameter name: Input arguments must not be null or empty." At line:11 char:1 + $c.GlobalParameters.Add($p) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ArgumentNullException
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Sign in to answer