Microsoft365リソース会議室

役員だけが予約できる会議室作って
5人の役員の為に?めんどくさ。
でも仕事なのでやりますよ。
新しくリソースから会議室を作り、役員グループを割り当てるミッション。
Powershellを管理者として実行し、exchangeへ接続
$UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection Import-PSSession $Session
この後、管理者IDでログイン
特定のグループにしか予約させない呪文
Set-CalendarProcessing -Identity 【会議室のメアド】 -AutomateProcessing AutoAccept -AllBookInPolicy $False -BookInPolicy 【予約できるグループのメアド】
設定できているのか確認する呪文
この会議室を予約できるのはだあれ?
Get-CalendarProcessing 【会議室のメアド】 | select -ExpandProperty BookInPolicy | Get-Recipient | select DisplayName,PrimarySmtpAddress

無事設定された様子
Outlookで見るとこんな感じ
ヒラには枠しかみえん。
強引に予約してみる
はい、取れません。

アクセス許可がありません
めでたしめでたし。
コメント