Home » Office 365 » Get-MsolCompanyAllowedDataLocation

Get-MsolCompanyAllowedDataLocation

The Get-MsolCompanyAllowedDataLocation cmdlet in PowerShell gets the current allowed data locations of a company in Microsoft Office 365.

The Get-MsolCompanyAllowedDataLocation command gets all the current allowed data locations for a company from Azure Active Directory.

In this article, we will discuss how to use the Get-MsolCompanyAllowedDataLocation cmdlet in PowerShell to get the current allowed data location of a company.

Get-MsolCompanyAllowedDataLocation Syntax

Get-MsolCompanyAllowedDataLocation
   [-TenantId <Guid>]
   [<CommonParameters>]

Where,

TenantId: Specifies the unique ID of the tenant on which to perform the operation.

How to Get the Current Allowed Data Locations for a Company in Office 365

To get the current allowed data locations of a company from Office 365, run the following command.

Get-MsolCompanyAllowedDataLocation

This command returns all the current allowed data locations of a company from Azure Active Directory.

Cool Tip: How to use the Set-MsolCompanyAllowedDataLocation in PowerShell!

Conclusion

I hope the above article on the Get-MsolCompanyAllowedDataLocation cmdlet in PowerShell to get the current allowed data locations of 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.