update version and fix what if
This commit is contained in:
parent
207657b5e8
commit
1867106799
@ -7,6 +7,8 @@
|
|||||||
[link-icon-website]: https://img.shields.io/badge/%F0%9F%92%BB-My%20Web%20Site-0078D4.svg
|
[link-icon-website]: https://img.shields.io/badge/%F0%9F%92%BB-My%20Web%20Site-0078D4.svg
|
||||||
[link-website]: https://www.endmove.eu/
|
[link-website]: https://www.endmove.eu/
|
||||||
|
|
||||||
|
__Current version : *1.0.0*__
|
||||||
|
|
||||||
## Description
|
## 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.
|
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.
|
||||||
|
@ -54,8 +54,8 @@ foreach ($User in $Users) {
|
|||||||
Write-Host " [X] " -NoNewline
|
Write-Host " [X] " -NoNewline
|
||||||
Write-Host ("Updated : The permission has been updated from (" + $CurrCalPerm.AccessRights + ") to (" + $Permission + ").") -ForegroundColor Green
|
Write-Host ("Updated : The permission has been updated from (" + $CurrCalPerm.AccessRights + ") to (" + $Permission + ").") -ForegroundColor Green
|
||||||
$CountOK++
|
$CountOK++
|
||||||
# Update permission
|
# Update permission (for debugging: -WhatIf)
|
||||||
Set-MailboxFolderPermission -Identity $CurrCalId -User Default -AccessRights $Permission -WhatIf
|
Set-MailboxFolderPermission -Identity $CurrCalId -User Default -AccessRights $Permission
|
||||||
} else {
|
} else {
|
||||||
Write-Host " [X] " -NoNewline
|
Write-Host " [X] " -NoNewline
|
||||||
Write-Host ("Ignored : The permission (" + $CurrCalPerm.AccessRights + ") of this user did not launch the trigger.") -ForegroundColor Yellow
|
Write-Host ("Ignored : The permission (" + $CurrCalPerm.AccessRights + ") of this user did not launch the trigger.") -ForegroundColor Yellow
|
||||||
|
Loading…
Reference in New Issue
Block a user