Files
Merge-DSCConfigurationData/Private/Test-ConfigurationDataItemHasKeys.ps1
Torsten Brendgen e10ab48bb4 Creating Module
2026-04-21 13:02:51 +02:00

19 lines
382 B
PowerShell

function Test-ConfigurationDataItemHasKeys {
[CmdletBinding()]
Param(
[AllowNull()]
$Item,
[Parameter(Mandatory=$true)]
[String[]]
$KeyNames
)
foreach($KeyName in $KeyNames){
if(-not (Test-ConfigurationDataItemContainsKey -Item $Item -KeyName $KeyName)){
return $false
}
}
return $true
}