본문 바로가기
Windows

Powershell - Show Organizer of office 365 Meeting Room mailbox

by 올엠 2020. 10. 29.
반응형

오늘은 함께 Office365의 Meeting Room 메일박스의 일정에서 제목과 요청자를 볼 수 있는 방법을 알아보도록 하겠습니다.

먼저 파워쉘(Powershell)을 관리자 권한으로 실행합니다.

그리고 현재 Office 365 관리자 권한이 있는 인증 권한을 Credential를 이용해서 저장해 놓습니다.

$credObject = Get-Credential

저장한 Credential를 이용하여 Office 365에 연결합니다.

$ExchOnlineSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $credObject -Authentication Basic -AllowRedirection

그리고 Exchange 명령을 불러들입니다.

Import-PSSession $ExchOnlineSession

만약 정상적으로 불려들였다면, 명령어를 로드하는 화면을 보실 수 있습니다.

이후 설정하고자 하는 RoomMailbox에 먼저 접근할 수 있는 권한을 설정합니다.

Set-MailboxFolderPermission -Identity RoomMailbox:\calendar -User default -AccessRights LimitedDetails

주의할 점은 먼저 접근 권한을 설정해야지만, 아래 RoomMailbox에 제목을 추가하고 주선자를 표시할 수 있으므로 권한 설정은 꼭 하시기 바랍니다.

그리고 Set-CalendarProcessing 명령을 이용하여 RoomMailbox에 제목에 주선자를 표시하도록 -AddOrganizerToSubject를 ture로 설정합니다.

Set-CalendarProcessing -Identity Meetingroom -AddOrganizerToSubject $true -DeleteComments $false -DeleteSubject $false

정상적으로 동작하는지 일정에서 확인할 수 있습니다.

만약 여러개의 미팅룸을 작업한다면, 다음과 같이 미팅룸 리스트를 변수로 지정하여 가능합니다.

$rooms = Get-Mailbox -RecipientTypeDetails RoomMailbox
$rooms | %{Set-MailboxFolderPermission $_":\Calendar" -User Default -AccessRights LimitedDetails}
$rooms | %{Set-CalendarProcessing $_ -AddOrganizerToSubject $true -DeleteComments $false -DeleteSubject $false}

그리고 모든 작업이 마무리 되었다면, 연결된 세션을 끊는것도 잊지맙시다.

Remove-PSSession $ExchOnlineSession

 

댓글0