默认分类 通过AAD删除用户 Get-AzureADUser -All $true | Where-Object {$_.userprincipalname -notlike "admin@xxxxx.com"} | Remove-AzureADUser 阅读全文 2025-08-17 丿记性不太好丶 0 条评论 194 次浏览
默认分类 使用powershell连接Exchange Online 命令行 对于中国或德国的租户,需要使用 -ExchangeEnvironmentName 参数并分别指定 O365China 或 O365Germany。 对于安全的美国政府租户,需要指定 O365USGovGCCHigh 或 O365USGovDOD。 ``` Set-ExecutionPolicy RemoteSigned Install-Module -Name ExchangeOnlineManagement #连接 Exchange Online PowerShell 国际版 Connect-ExchangeOnline #连接 Exchange Online PowerShell 国内版 Connect-ExchangeOnline -ExchangeEnvironmentName O365China #断开连接 Disconnect-ExchangeOnline ``` 阅读全文 2025-08-12 丿记性不太好丶 0 条评论 227 次浏览