Forum Discussion
How to obtain attribute use as source anchor from PowerShell
Hi
I need to determine which attribute is used as a source anchor by AD Connect. Is it possible to do using Power Shell?
Not from O365/Azure AD side. On the AAD Connect server, you can get it via:
Get-ADSyncGlobalSettingsParameter | ? {$_.Name -eq "Microsoft.SynchronizationOption.AnchorAttribute"}
2 Replies
Not from O365/Azure AD side. On the AAD Connect server, you can get it via:
Get-ADSyncGlobalSettingsParameter | ? {$_.Name -eq "Microsoft.SynchronizationOption.AnchorAttribute"}
- Vladimir DumchikovCopper Contributor
Thanks, but I cannot use the cmdlet because my script may be executed on any computer not obligatory on a computer with AD Connect installed, and I don't know the name of the computer with AD connect so I cannot establish a remote Power Shell session.
But I found in the Azure AD Connect: Design concepts article the following paragraph:
Only newer versions of Azure AD Connect (1.1.524.0 and after) stores information in your Azure AD tenant about the sourceAnchor attribute used during installation. Older versions of Azure AD Connect do not.
So the new version of AD connect stores the name of source anchor attribute in an Azure tenant. May be there is a way to get this information using MSOL-cmdlets for example.