From d118b574a9c049fdd74f834739bc8375843fe249 Mon Sep 17 00:00:00 2001 From: IxianPixel Date: Tue, 3 Sep 2024 13:02:39 +0100 Subject: [PATCH] Removing SharingPermissionsFlag --- .DS_Store | Bin 8196 -> 10244 bytes EXO/Set-GlobalMailboxPermissions.ps1 | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.DS_Store b/.DS_Store index 592571f10a52c0a2b67527e68a871766a555566e..1206c0fdb09c2060c987049a9f0ca229cf43f864 100644 GIT binary patch delta 212 zcmZp1XbF&DU|?W$DortDU{C-uIe-{M3-C-V6q~50$jGxXU^hP_&tx8fJ`PJma~%aE z3-is31irAcx-vvC_)nfK)*xbPV4$O5XlYWbqfl*VWNf0NU~V~CU)&6$WOJ)n6XV7P zX?8(opus?(zzrl^L3V5`{LVa?UnWq531YJbNScv>!2m>0E|BTn%qTjQk!YJHw~EaI E0D0Of%>V!Z delta 119 zcmZn(XmOBWU|?W$DortDU;r^WfEYvza8E20o2aMA$h9$GH$NlSWFCP&4kI%&9R*`E zgUOr{(wp}R++^KcEndhd$P82u1QOgp!WE=-W8rt^$^0sT9E=bH879Z`Ox^rfWF{j} HLmndlHC7l_ diff --git a/EXO/Set-GlobalMailboxPermissions.ps1 b/EXO/Set-GlobalMailboxPermissions.ps1 index 448fa00..eb4ab35 100644 --- a/EXO/Set-GlobalMailboxPermissions.ps1 +++ b/EXO/Set-GlobalMailboxPermissions.ps1 @@ -18,5 +18,5 @@ foreach ($mailbox in $mailboxes) { $processCount++ $percentComplete = (($processCount / $totalMailboxes) * 100) Write-Progress -Activity "Applying calendar permissions" -Status "Processing $calendarPath" -PercentComplete $percentComplete - Add-MailboxFolderPermission -Identity $calendarPath -User $upn -AccessRights $calendarPermission -SharingPermissionFlags Delegate + Set-MailboxFolderPermission -Identity $calendarPath -User $upn -AccessRights $calendarPermission -SharingPermissionFlags None } \ No newline at end of file