Set-AzureADDomain
Updates a domain.
Syntax
Default (Default)
Set-AzureADDomain
-Name <String>
[-IsDefault <Boolean>]
[-IsDefaultForCloudRedirections <Boolean>]
[-SupportedServices <System.Collections.Generic.List`1[System.String]>]
[<CommonParameters>]
Description
The Set-AzureADDomain cmdlet updates a domain in Azure Active Directory (AD).
Examples
Example 1: Set the domain as the default domain for new user account creation
PS C:\>Set-AzureADDomain -Name Contoso.com -IsDefault $true
This command updates the default domain (One per company) used for new account creation.
Example 2: Set the list of domain capabilities
PS C:\>Set-AzureADDomain -Name Contoso.com -SupportedServices @("Email", "OfficeCommunicationsOnline")
This command updates the supported services for this domain.
Example 3: Set the default domain for cloud redirections
PS C:\>Set-AzureADDomain -Name Contoso.com -IsDefaultForCloudRedirections $true
This command updates the default domain used for cloud redirections.
Parameters
-IsDefault
Indicates whether or not this is the default domain that is used for user creation. There is only one default domain per company.
Parameter properties
Type: | Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-IsDefaultForCloudRedirections
Indicates whether or not this is the default domain used for cloud redirections.
Parameter properties
Type: | Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Name
The fully qualified name of the domain.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-SupportedServices
The capabilities assigned to the domain.
Parameter properties
Type: | |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Notes
See the migration guide for Set-AzureADDomain to the Microsoft Graph PowerShell.