< Back

Get-ForestDomains

Fri Jan 10, 2020 6:53 pm

NAME Get-ForestDomains



SYNOPSIS

Gets all of the domains in the current Active Directory Forest.





SYNTAX

Get-ForestDomains [<CommonParameters>]





DESCRIPTION

The Get-ForestDomains cmdlet gets all of the domains in the current Active Directory Forest.





PARAMETERS

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None





OUTPUTS

System.String[]





NOTES





AUTHOR: Michael Haken

LAST UPDATED: 2/27/2016



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-ForestDomains



Gets all of the domains in the Forest of the logged on user.











RELATED LINKS