Set-Domain cmdlet is used for updating domain information.

This cmdlet supports risk-mitigation parameters.

Input parameters


Mandatory (R/O)

Valid Values
1  Authentication information (all parameters)  


(alias: Name)

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

Value of the Name parameter can be used as Identity

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 "" domain as a default domain:

Set-Domain "" -IsDefault $true