---
description: "Learn more about: ActiveDirectory.Domains"
title: "ActiveDirectory.Domains"
---
# ActiveDirectory.Domains

## Syntax

<pre>
ActiveDirectory.Domains(optional <b>forestRootDomainName</b> as nullable text) as table
</pre>

## 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.
