Skip to content

Latest commit

 

History

History
101 lines (73 loc) · 2.12 KB

File metadata and controls

101 lines (73 loc) · 2.12 KB

external help file: Microsoft.Online.Administration.Automation.PSModule.dll-Help.xml online version: schema: 2.0.0 ms.assetid: 750DB368-6EC8-45AC-B3E8-A4D53E6284D7 ms.reviewer: rodejo ms.custom: iamfeature=PowerShell

Set-MsolDomain

SYNOPSIS

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
Parameter Sets: (All)
Aliases:

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
Parameter Sets: (All)
Aliases:

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
Parameter Sets: (All)
Aliases:

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

OUTPUTS

NOTES

RELATED LINKS

Confirm-MsolDomain

Get-MsolDomain

New-MsolDomain

Remove-MsolDomain