Creating Module

This commit is contained in:
Torsten Brendgen
2026-04-21 13:02:51 +02:00
parent 7c9b854aec
commit e10ab48bb4
14 changed files with 493 additions and 321 deletions

View File

@@ -0,0 +1,24 @@
function Get-ConfigurationDataArraySearchItem {
[CmdletBinding()]
Param(
[AllowNull()]
$Item
)
if($null -eq $Item){
return $null
}
if(-not (
($Item -is [System.Collections.Hashtable]) -or
($Item -is [System.Collections.Specialized.OrderedDictionary])
)){
return $null
}
return @(
$Item.GetEnumerator() |
Where-Object { ($_.Value -is [String]) -and ($_.Name -like "*Name") } |
Select-Object -First 1
)[0]
}