initial commit
This commit is contained in:
commit
6401784fbd
26
configs.ps1
Normal file
26
configs.ps1
Normal 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
4
dev-note.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
Get-ExecutionPolicy
|
||||||
|
|
||||||
|
Set-ExecutionPolicy Unrestricted
|
||||||
|
Set-ExecutionPolicy Restricted
|
26
run.ps1
Normal file
26
run.ps1
Normal 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
|
Loading…
Reference in New Issue
Block a user