1:Install-Module -Name AzureAD
2:Import-Module AzureAD
3:Install-Module MSOnline
4:Import-Module MSOnline
5:$credential = Get-Credential
6:Connect-SPOService -Url https://xxxxxx-admin.sharepoint.cn -credential $credential
7:Set-SPOsite https://omnicommediagroup.sharepoint.cn/sites/OMGChina
8:Set-SPOTenant -ShowEveryoneExceptExternalUsersClaim:$true
切记执行前如果是世纪互联的要先关闭多因子认证,去如下链接关闭: