initial commit

This commit is contained in:
Jérémi N ‘EndMove’ 2022-08-25 13:47:30 +02:00
commit 6401784fbd
Signed by: EndMove
GPG Key ID: 65C4A02E1F5371A4
4 changed files with 58 additions and 0 deletions

2
README.md Normal file
View File

@ -0,0 +1,2 @@
# EXCAL-ARIGHTS

26
configs.ps1 Normal file
View File

@ -0,0 +1,26 @@
<##
# EXCAL-ARIGHTS - configuration file
#
# @version 1.0.0
# @since 08-25-2022
#
# @author Jérémi Nihart <contact@endmove.eu>
# @copyright © 2022 EndMove, All rights reserved.
#
# @link https://git.endmove.eu/EndMove/excal-arights
#>
# Permission to use (define current by this one)
$permission = "LimitedDetails"
# Name of the calendar folder in the user's calendar
$calandarFolders = @("Calendar", "Calendrier", "Kalender")
# Alias of account to be skipped (an alias, is the email prefix ahead of the @domain.com)
$ignoreAlias = @("raoul.nihart", "brecht.marsoul")
# Email of the Administration account to use
$adminAccount = "endmove@luminussolutions.be"
# Logs file in which log all process
$logFile = "access_rights_update.log"

4
dev-note.txt Normal file
View File

@ -0,0 +1,4 @@
Get-ExecutionPolicy
Set-ExecutionPolicy Unrestricted
Set-ExecutionPolicy Restricted

26
run.ps1 Normal file
View File

@ -0,0 +1,26 @@
<##
# EXCAL-ARIGHTS - runable script (entrypoint)
#
# @version 1.0.0
# @since 08-25-2022
#
# @author Jérémi Nihart <contact@endmove.eu>
# @copyright © 2022 EndMove, All rights reserved.
#
# @link https://git.endmove.eu/EndMove/excal-arights
#>
# Setup script
$root = (Split-Path $MyInvocation.MyCommand.Path -Parent)
. $root\configs.ps1
Import-Module ExchangeOnlineManagement
# Start logging
Start-Transcript -Path $root\$logFile -Append
# Initiate exchange connection
Connect-ExchangeOnline -UserPrincipalName $adminAccount -ShowProgress $true
# Stop logging
Stop-Transcript