Created
November 18, 2022 13:14
-
-
Save Trimad/aad5fb9449d182b4a712be9d95acf5e5 to your computer and use it in GitHub Desktop.
Calendar Permissions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Hunt for the owner of the mailbox: | |
Get-MailboxFolderStatistics "theuser@domain.com" | ft Name, Identity, folderpath, foldertype > folderstats.txt | |
# Using the name of the mailbox owner, get the CalendarSharingOwnerSmtpAddress and SharingOwnerRemoteFolderId properties: | |
Get-MailboxFolderStatistics -Identity "theuser" | ForEach-Object { | |
If ($_.FolderPath -match "/Calendar/Advisory Team Calendar"){ # Example calendar, needs to be changed | |
$FolderIdentity = ($_.Identity).Replace('\Calendar\', ':\Calendar\') | |
Get-MailboxCalendarFolder -Identity $FolderIdentity | Select CalendarSharingOwnerSmtpAddress, SharingOwnerRemoteFolderId | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment