Get-Domain cmdlet gets a list of added domains.

Input parameters

#
Parameter
Type

Mandatory (R/O)

Description
Valid Values
1 Authentication Information (all parameters)  
2 Count int O The number of the returned items (after Offset parameter is specified and processed)

Min value is 1, max - 1000.

If not specified, equals to 100 (the default value).

3 Offset int O A number of the item, starting from which the items should be returned

Min value is 1.

If not specified, equals to 1 (the default value).

4 SettingsType DomainSettingsType O Type of domain settings
  • Dns
  • MSExchange
  • Split

Output parameters

DomainInfo

Example of using Get -Domain cmdlet   

Getting all split domains:

Get-Domain -SettingsType Split

Displaying settings of the first domain in the list:

$domains = Get-Domain $domains[0].Settings