added: extensive logging

added: "...Y015"-changes
This commit is contained in:
Edmond Gebara 2026-07-06 21:47:21 +02:00
parent a5e28a7f52
commit 9acdffdbb8
4 changed files with 28 additions and 35 deletions

View file

@ -7,9 +7,9 @@ function ProcessADObjects
[Parameter(Mandatory = $true, Position = 1)]
[String] $roletypeTag
)
$begin = Get-Date
outLog "ProcessADObjects called at: " $begin $init
$begin = Get-Date
outLog ("ProcessADObjects called at: " + $begin + $init)
$adObjectEntries | Add-Member OldName ""
$adObjectEntries | Add-Member GroupName ""
$adObjectEntries | Add-Member GUIADGroupName ""
@ -372,9 +372,6 @@ function ProcessADObjects
foreach ($item in $FileSystemAccessEntriesNew)
{
outLogVerbose 'foreach $item in $FileSystemAccessEntriesNew:' $item.OldName
$item | Out-String
$roleType = "unknown"
$relevantRoleTypes = $SPK.GroupManagementMappings | Where-Object { $_.OU -ieq $FI.TypeTagFilesystemAccess } | Sort-Object { [int]$_.Order }
@ -1673,10 +1670,6 @@ function ProcessADObjects
$DAWGruppenverwaltungOutList.Sort($ordinalComparer)
$KURSSollProfileOutList.Sort($ordinalComparer)
$KURSIstMitarbeiterProfileOutList.Sort($ordinalComparer)
removeDuplicatesFromSortedList $DAWGruppenAnlegenOutList "DAWGruppenAnlegenOutList"
removeDuplicatesFromSortedList $DAWGruppenverwaltungOutList "DAWGruppenverwaltungOutList"
removeDuplicatesFromSortedList $KURSSollProfileOutList "KURSSollProfileOutList"
removeDuplicatesFromSortedList $KURSIstMitarbeiterProfileOutList "KURSIstMitarbeiterProfileOutList"
$DAWGruppenverwaltungNeuOutList.Clear()
$lastLdap = $null
@ -1715,5 +1708,5 @@ function ProcessADObjects
$KURSSollProfileOutList.Clear()
$KURSIstMitarbeiterProfileOutList.Clear()
$end = Get-Date
outLog "finished: " $MyInvocation.MyCommand " on type " $roletypeTag.PadRight(30, " ") ", used " ($end - $begin)
outLog ("finished: " + $MyInvocation.MyCommand + " on type " + $roletypeTag.PadRight(30, " ") + ", used " + ($end - $begin))
}