Get-MsolDomain

Gets a domain in Azure Active Directory.

Syntax

Get-MsolDomain
   [-Status <DomainStatus>]
   [-Authentication <DomainAuthenticationType>]
   [-Capability <DomainCapabilities>]
   [-TenantId <Guid>]
   [<CommonParameters>]
Get-MsolDomain
   -DomainName <String>
   [-TenantId <Guid>]
   [<CommonParameters>]

Description

The Get-MsolDomain cmdlet gets a company domains.

Examples

Example 1: Get all domains for the company

PS C:\> Get-MsolDomain

This command retrieves all domains for the company, verified or unverified.

Example 2: Get a domain by name

PS C:\> Get-MsolDomain -Name "contoso.com"

This command retrieves the contoso.com domain.

Example 3: Get verified domains

PS C:\> Get-MsolDomain -Status Verified

This command returns a list of verified company domains.

Required Parameters

-DomainName

Specifies the fully qualified domain name to retrieve.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Authentication

Specifies the filter for the specified authentication type. If provided, only domains with the authentication type are returned.

Type:DomainAuthenticationType
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Capability

Specifies the filter for domains that have the specified capability assigned.

Type:DomainCapabilities
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Status

Specifies the filter to return only domains with the specified status. Valid values are: Verified, Unverified, and PendingDeletion.

Type:DomainStatus
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TenantId

Specifies the unique ID of the tenant on which to perform the operation. The default value is the tenant of the current user. This parameter applies only to partner users.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Outputs

Microsoft.Online.Administration.Domain

Each domain returned will include the following information: