Exchange Online 为组织内用户统一关闭重点邮箱
更新:HHH   时间:2023-1-7


Set-ExecutionPolicy RemoteSigned

$USerCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://partner.outlook.cn/PowerShell-LiveID/ -Credential $USerCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session

 

Set-OrganizationConfig -FocusedInboxOn $false

Get-OrganizationConfig |fl FocusedInboxOn

禁用用户创建Office 365 组

Get-OwaMailboxPolicy -Identity "OwaMailboxPolicy-Default"

Set-OwaMailboxPolicy -Identity "OwaMailboxPolicy-Default" -GroupCreationEnabled $false

查看动态通迅组成员

$DDG = Get-DynamicDistributionGroup "All Nipc Employees"


Get-Recipient -RecipientPreviewFilter $DDG.RecipientFilter -OrganizationalUnit $DDG.RecipientContainer

返回云计算教程...