AzureAD PowerShell - how to read CountryCode, DistinguishedName, middleName, msExchRecipientDisplayType, msRTCSIP-Line and other attributes?

Manish Kungwani 1 Reputation point
2021-05-09T18:24:49.383+00:00

We are syncing on-prem AD to Azure AD using AzureADConnect and need to verify that the following attributes from on-prem AD are syncing successfully. Can you please help with the PowerShell commands, which can help with fetching these attributes?

  • cn
  • countryCode
  • DisplayNamePrintable
  • middleName
  • mS-DS-ConsistencyGuid
  • msExchImmutableId
  • msExchRecipientDisplayType
  • msRTCSIP-Line
  • msRTCSIP-OptionFlags
  • msRTCSIP-UserEnabled

I've already tried to fetch them using Get-AzureADUser, Get-Mailbox, Get-AzureADUserManager, Get-MsolUser.

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,805 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,345 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,334 questions
{count} votes