Forum Discussion
How to obtain attribute use as source anchor from PowerShell
- Oct 18, 2017
Not from O365/Azure AD side. On the AAD Connect server, you can get it via:
Get-ADSyncGlobalSettingsParameter | ? {$_.Name -eq "Microsoft.SynchronizationOption.AnchorAttribute"}
Not from O365/Azure AD side. On the AAD Connect server, you can get it via:
Get-ADSyncGlobalSettingsParameter | ? {$_.Name -eq "Microsoft.SynchronizationOption.AnchorAttribute"}
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.