This chapter focuses on the AzureActiveDirectory class in WMI.

The AzureActiveDirectory Class

The AzureActiveDirectory class provides status and configuration-related information for Azure Active Directory integrations in anynode. All properties are read-only. For each configured Azure Active Directory, one class instance exists. The property ObjectRecordName has the key qualifier and uniquely identifies an instance.

AzureActiveDirectory Class Properties

The table below lists the properties of the 'AzureActiveDirectory' class in alphabetical order. All properties are read-only.

Some WMI queries are only available starting from anynode version 4.16.(Check out available WMI queries with the PowerShell command below).

To display all contents of the AzureActiveDirectory class locally without credentials, you can use the following command:

Get-WmiObject -Namespace "root\TESYSTEMS\anynode" -Class "AzureActiveDirectory"

-Namespace "root\TESYSTEMS\anynode" : Specifies the WMI namespace for anynode.

-Class "AzureActiveDirectory" : Selects the "AzureActiveDirectory" class to retrieve its contents.


Property: ApplicationName

Type: string

Description: The property provides the name of the registered application.


Property: CacheDuration

Type: uint32

Description: The property provides the cache duration for user data in seconds.


Property: CacheState

Type: uint32

Description: The property provides the state of cached user information. Valid values are:

  • 1: Empty

  • 2: Active

  • 3: Expired

  • 4: Offline


Property: DirectoryUsers

Type: uint32

Description: The property provides the number of users in the Azure Dial String Directory (may be less than TotalUsers when a filter is active).


Property: DirectoryUsersWithNumber

Type: uint32

Description: The property provides the number of directory users that have a phone number assigned.


Property: FilterActive

Type: uint32

Description: The property indicates whether a user filter is active. Valid values are:

  • 0: Inactive

  • 1: Active


Property: FilterErrorDescription

Type: string

Description: The property provides a description when filter parsing fails (meaningful when Status indicates a filter error).


Property: FilterErrorPosition

Type: uint32

Description: The property provides the character position of a filter parse error.


Property: HostName

Type: string

Description: The property provides the host name used for authentication.


Property: Index

Type: uint32

Description: The property provides the numeric index of the instance (1 .. number of configured Azure AD entries).


Property: LastSearchTime

Type: datetime

Description: The property provides the date and time of the last directory search. The format is the WMI datetime format.


Property: MsgraphApiVersion

Type: uint32

Description: The property provides the Microsoft Graph API version in use. Valid values are:

  • 1: Unknown

  • 2: Beta

  • 3: v1.0


Property: Name

Type: string

Description: The property provides the symbolic name from configuration.


Property: NetworkObjectRecordName

Type: string

Description: The property provides the identifier of the associated network interface object.


Property: NetworkUp

Type: uint32

Description: The property indicates whether the network interface is up. Valid values are:

  • 0: Unknown

  • 1: Up

  • 2: Down


Property: OauthAutoRefresh

Type: uint32

Description: The property indicates whether OAuth token auto-refresh is enabled. Valid values are:

  • 0: Disabled

  • 1: Enabled


Property: ObjectRecordName

Type: string

Description: The property provides the unique object identifier from configuration. It has the key attribute and identifies the instance.


Property: PageSize

Type: uint32

Description: The property provides the maximum number of elements requested per search (zero means retrieve all at once).


Property: ResourceUrl

Type: string

Description: The property provides the resource URL for accessing Azure Active Directory.


Property: SearchCount

Type: uint32

Description: The property provides the number of searches performed.


Property: SearchFails

Type: uint32

Description: The property provides the number of failed searches.


Property: Status

Type: uint32

Description: The property provides authentication and search status. Valid values are:

  • 1: Idle

  • 2: Authorized

  • 3: DnsFailed

  • 4: TcpChannelFailed

  • 5: TlsChannelFailed

  • 6: HttpFailed

  • 7: InvalidApplicationName

  • 8: InvalidClientId

  • 9: InvalidClientSecret

  • 10: LoginFailed

  • 11: SearchFailed

  • 12: FilterError


Property: TotalUsers

Type: uint32

Description: The property provides the number of users available in Azure Active Directory.