PowerShellのコマンドで Outlook on the Webを全員まとめて使えなくする
PS C:\>Get-Mailbox | Set-CASmailbox -OWAEnabled $False
逆に全員まとめて使えるようにするときは
PS C:\>Get-Mailbox | Set-CASmailbox -OWAEnabled $True
PowerShellを終了する前には Remove-PSSession $Session を忘れずに。
(後で編集)
https://docs.microsoft.com/en-us/powershell/exchange/exchange-online-powershell-v2?view=exchange-ps
https://docs.microsoft.com/en-us/powershell/exchange/connect-to-exchange-online-powershell?view=exchange-ps
Install-Module -Name ExchangeOnlineManagement
Import-Module ExchangeOnlineManagement; Get-Module ExchangeOnlineManagement
Update-Module -Name ExchangeOnlineManagement
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline -UserPrincipalName navin@contoso.com -ShowProgress $true
—-
Import-Module ExchangeOnlineManagement
$UserCredential = Get-Credential
Connect-ExchangeOnline -Credential $UserCredential -ShowProgress $true
Disconnect-ExchangeOnline