From 18671067994e56326a9ca79c59deba3ebb371a4c Mon Sep 17 00:00:00 2001 From: EndMove Date: Thu, 25 Aug 2022 18:44:16 +0200 Subject: [PATCH] update version and fix what if --- README.md | 2 ++ run-script.ps1 | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a14dd4c..c2ea8a8 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ [link-icon-website]: https://img.shields.io/badge/%F0%9F%92%BB-My%20Web%20Site-0078D4.svg [link-website]: https://www.endmove.eu/ +__Current version : *1.0.0*__ + ## Description ExCal-ARights is a script to automate the change of permissions on Microsoft Exchange Server calendars. This script allows you to define a list of aliases to ignore, as well as different triggers (permissions triggering a change) and the permission to use. Moreover, any action performed by the ExCal-ARights is logged so that you can confirm and view the changes after application. diff --git a/run-script.ps1 b/run-script.ps1 index d106eec..d8037d7 100644 --- a/run-script.ps1 +++ b/run-script.ps1 @@ -54,8 +54,8 @@ foreach ($User in $Users) { Write-Host " [X] " -NoNewline Write-Host ("Updated : The permission has been updated from (" + $CurrCalPerm.AccessRights + ") to (" + $Permission + ").") -ForegroundColor Green $CountOK++ - # Update permission - Set-MailboxFolderPermission -Identity $CurrCalId -User Default -AccessRights $Permission -WhatIf + # Update permission (for debugging: -WhatIf) + Set-MailboxFolderPermission -Identity $CurrCalId -User Default -AccessRights $Permission } else { Write-Host " [X] " -NoNewline Write-Host ("Ignored : The permission (" + $CurrCalPerm.AccessRights + ") of this user did not launch the trigger.") -ForegroundColor Yellow