ActiveDirectory.Domains

Updated on

ActiveDirectory.Domains is a Power Query M function that retrieves a list of Active Directory domains in the same forest as a specified domain or the current machine’s domain if none is specified. The function returns a list of Active Directory domains.

Compatible with: Power BI Service Power BI Desktop Excel Microsoft 365

Syntax

ActiveDirectory.Domains( optional forestRootDomainName as nullable text ) as table

Description

Returns a list of Active Directory domains in the same forest as the specified domain or of the current machine’s domain if none is specified.

Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/powerquery-m/activedirectory-domains