Επεξεργασία

Κοινή χρήση μέσω


Set-MsolDomain

Modifies settings of a domain.

Syntax

Set-MsolDomain
   [-Name <String>]
   [-IsDefault]
   [-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
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Name

Specifies the name of the domain to modify.

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