Home » Office 365 » Set-MsolDomain – Update Settings of a Domain in Office 365

Set-MsolDomain – Update Settings of a Domain in Office 365

The Set-MsolDomain cmdlet in PowerShell modifies the settings of a domain in Microsoft Office 365. This command can change the default domain.

The syntax to update the settings of a domain in Azure Active Directory is given below.

Set-MsolDomain
   [-Name <String>]
   [-IsDefault]
   [-TenantId <Guid>]
   [<CommonParameters>]

In this article, we will discuss how to use the Set-MsolDomain cmdlet in PowerShell to update the settings of a domain in Azure Active Directory.

How to Make a Domain as Default Domain in Office 365

To make a domain into the default domain in Office 365, use the Set-MsolDomain cmdlet with the -Name and -IsDefault parameters.

The -Name parameter is used to specify the name of the domain and the -IsDefault parameter indicates that this command makes the domain into the default domain.

Set-MsolDomain -Name "shellgeeklab.com" -IsDefault

This command sets the “shellgeeklab.com” domain as the default domain in Office 365.

Conclusion

I hope the above article on how to modify the settings of a domain in Office 365 using the Set-MsolDomain cmdlet in PowerShell is helpful to you.

You can find more topics about PowerShell Active Directory commands and PowerShell basics on the ShellGeek home page.

Related Links

Get-MsolDomain

Remove-MsolDomain

New-MsolDomain