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