This commit is contained in:
Edmond Gebara 2026-07-07 12:27:41 +02:00
parent 9e18f320cd
commit 99c1510a34
36 changed files with 57279 additions and 2052 deletions

View file

@ -56,6 +56,11 @@ $InstituteRootPathLog = $InstituteRootPath + "Log/"
$InstituteRootPathOut = $InstituteRootPath + "Out/"
$LogFileName = $InstituteRootPathLog + [io.path]::GetFileNameWithoutExtension($MyInvocation.MyCommand.Name) + "-" + $TimeStamp + ".log"
Remove-Item -Path $LogFileName -ErrorAction Ignore
if ($Config.CleanWorkDirs)
{
clearWorkDirectories @($InstituteRootPathTmp, $InstituteRootPathOut)
}
$IsTestMode = checkTestMode
$InstitutsSourcePath = $PSScriptroot + "/Process-ADObjects-Work-" + $Institut + ".ps1"
$InstitutsSourcePathKURS = $PSScriptroot + "/Process-ADObjects-Work-" + $Institut + "-KURS.ps1"
@ -173,7 +178,7 @@ $ADObjectsOrganisation = @()
$ADObjectsSecurity = @()
$ADObjectsRole = @()
$ADApplications = Get-Content -Path $ADApplicationsInFilePath | ConvertFrom-Csv -Delimiter ";"
$ADApplications = Import-Csv -Path $ADApplicationsInFilePath -Delimiter ";"
$ADDirectories = Get-Content -Path $ADDirectoriesInFilePath | ConvertFrom-Csv -Delimiter ";"
$Employees = Get-Content -Path $KURSEmployeesInFilePath | ConvertFrom-Csv -Delimiter ";"
$SecuritySettings = Get-Content -Path $SecuritySettingsInFilePath | ConvertFrom-Csv -Delimiter ";"
@ -248,6 +253,7 @@ if ($Config.ProcessDAW)
ProcessADObjects $ADObjectsSecurity $FI.TypeTagSecurity
ProcessADObjects $ADObjectsAppConfiguration $FI.TypeTagAppConfiguration
ProcessADObjects $ADObjectsRole $FI.TypeTagRole
FinalizeADObjectsOutputs
}
catch
{