ActiveDirectory.Domains

Syntax

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

About

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.