The Set-MsolCompanyAllowedDataLocation
cmdlet in PowerShell sets an allowed data location for a service type for a company in Microsoft Office 365.
The Set-MsolCompanyAllowedDataLocation command attempts to set an allowed data location or update an existing allowed data location for a service type for a company.
In this article, we will discuss how to use the Set-MsolCompanyAllowedDataLocation cmdlet in PowerShell.
Set-MsolCompanyAllowedDataLocation Syntax
Set-MsolCompanyAllowedDataLocation -ServiceType <String> -Location <String> [-IsDefault <Boolean>] [-InitialDomain <String>] [-Overwrite <Boolean>] [-TenantId <Guid>] [<CommonParameters>]
Where,
SeviceType: Specifies the service type of the allowed data location to set.
Location: Specifies the allowed data location of a service type.
How to Set an Allowed Data Location for a Company in Office 365
To set an allowed data location for a company in Azure Active Directory, run the following command.
Set-MsolCompanyAllowedDataLocation -ServiceType "MicrosoftCommunicationsOnline" -Location "IN"
In the above PowerShell script, the Set-MsolCompanyAllowedDataLocation command attempts to set an allowed data location for the “MicrosoftCommunicationsOnline” service type for India for a company.
The “MicrosoftCommunicationsOnline” service type is also known as Skype for Business.
Cool Tip: How to get msol company information with PowerShell!
Conclusion
I hope the above article on the Set-MsolCompanyAllowedDataLocation cmdlet in PowerShell to set an allowed data location for a company in Office 365 is helpful to you.
You can find more topics about PowerShell Active Directory commands and PowerShell basics on the ShellGeek home page.