Set-Domain cmdlet is used for updating domain information.

This cmdlet supports risk-mitigation parameters.

Input parameters

#
Parameter
Type

Mandatory (R/O)

Description
Valid Values
1  Authentication information (all parameters)  
2

Identity

(alias: Name)

string R A property, that is used for managing the domain

Value of the Name parameter can be used as Identity

ParameterDescription
Name Domain name


3 IsDefault bool O This parameter specifies whether this domain will be set as a default domain or not
  • True - it is a default domain.
  • False - it is not a default domain. This is the default value.
4 IsExcluded bool O

The parameter specifies whether the domain is excluded (won't be used for generating Email addresses for mail-enabled objects) or not

  • True - the domain is excluded. 
  • False - the domain is not excluded. This is the default value.

Output parameters

No parameters

Example of using  Set-Domain cmdlet

Setting "accountname.com" domain as a default domain:

Set-Domain "accountname.com" -IsDefault $true