0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Outlookの予定表の共有を、通知メールなしで変更する方法

Last updated at Posted at 2024-08-24

予定表の公開設定を変えたら全社にメールが。。。

Outlookの予定表を共有する場合、共有された人には共有されたことを示す通知メールが送られる。
顔見知りのチーム内なら良いが、設定によっては全社一斉メールで送られることもある迷惑仕様である。
解決策として、PowerShellを使えば通知メールを送らずに共有設定を変更することができるようなので、ここに記載する。

準備

1. PowerShellを起動 (ユーザー権限でOK)
2. 以下を入力し、自分のユーザーにモジュールをインストールする

PowerShell
Install-Module -Name ExchangeOnlineManagement -Scope CurrentUser

3. 以下を入力し、モジュールを呼び出す

PowerShell
Import-Module ExchangeOnlineManagement

うまくいかない場合、以下を実行するとうまくいく場合がある。
(PowerShellの実行ポリシーを変更してから手順3を実行している)

PowerShell
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process
Import-Module ExchangeOnlineManagement

4. 以下を実行後、ユーザー選択画面が立ち上がるので、自分のアカウントを選択する

PowerShell
Connect-ExchangeOnline

うまくいかない場合、以下の手順が有効な場合がある
1行目のあとにダイアログボックスが立ち上がるので、メールアドレスとパスワードを入力する。

PowerShell
$lc = Get-Credential
Connect-ExchangeOnline -Credential $lc

5. 以下を入力することで、既存の予定表の公開設定が出力される
ただし、my_address@my_corp.comは自身のメールアドレスに置き換えること

PowerShell
Get-MailboxFolderPermission -Identity "my_address@my_corp.com:\予定表"

うまくいかない場合は、予定表Calendar に変更すると実施できる可能性がある

設定

引続きPowerShellに対して以下のコマンドを入力することで、通知を送らずに各種公開範囲の変更が可能

自分の予定表を組織(=Default)に対して箱だけ表示可能にする場合

PowerShell
Set-MailboxFolderPermission -Identity "my_address@my_corp.com:\予定表" -User "Default" -AccessRights "AvailabilityOnly"

自分の予定表を他人に対して、件名と中身を表示可能にする場合(新規に)

PowerShell
Add-MailboxFolderPermission -Identity "my_address@my_corp.com:\予定表" -User "partner_address@my_corp.com" -AccessRights "Reviewer"

既に追加済のアカウントに対して公開範囲を変更する場合は、
Add-MailboxFolderPermissionSet-MailboxFolderPermission に変更することで可能

自分の予定表の公開設定を削除する場合

PowerShell
Remove-MailboxFolderPermission -Identity "my_address@my_corp.com:\予定表" -User "partner_address@my_corp.com"

ただし、公開設定の削除だけであればOutlookのGUIから操作しても通知メールは発生しなかった。

参考

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?