Exchange Onlineモジュールをインストールする
PowerShellを起動して、Exchange Onlineモジュールをインストールします。
Install-Module -Name ExchangeOnlineManagement
スクリプトの実行を許可する
Set-ExecutionPolicy RemoteSigned -Scope Process #実行許可
Get-ExecutionPolicy #確認
モジュールを読み込む
Import-Module ExchangeOnlineManagement
Exchange Onlineに接続する
Connect-ExchangeOnline
権限を確認する
Get-MailboxFolderPermission -Identity "xxx1@xxx.com:\calendar"
参照権限を設定する
Set-MailboxFolderPermission -Identity "xxx1@xxx.com:\Calendar" -User "Default" -AccessRights Reviewer
コメント