Set-MsolDomain

Modifies settings of a domain.

Syntax

Set-MsolDomain [-IsDefault] [-Name <String>] [-TenantId <Guid>] [<CommonParameters>]

Description

The Set-MsolDomain cmdlet modifies settings for a domain. This cmdlet can change the default domain.

Examples

Example 1: Make a domain into the default domain

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

This command sets contoso.com as the default domain.

Parameters

-IsDefault

Indicates that this cmdlet makes the domain into the default domain.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Name

Specifies the name of the domain to modify.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
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
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False