Office365Environment Parameter (Connect-Exchange Cmdlet)
Specifies the Office 365 environment to use when establishing a connection.
Syntax
Connect-Exchange -Office365Environment string
Possible Values
GLOBAL, CHINA, USGOVTGCC, USGOVTDODData Type
cstr
Default Value
"GLOBAL"
Remarks
Use this property to select the appropriate Office 365 environment for your account. In most cases, the default value GLOBAL is sufficient.
If your Office 365 account resides in a sovereign or restricted environment, set this property accordingly.
Available values:
- GLOBAL: Default environment for commercial Microsoft 365 accounts.
- CHINA: Used for Microsoft 365 accounts hosted in the China cloud environment.
- USGOVTGCC: U.S. Government Community Cloud (GCC).
- USGOVTDOD: U.S. Department of Defense environment.
This property is useful when connecting to region-specific or government-restricted Office 365 tenants.