mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-08-12 19:57:34 +00:00
15 lines
577 B
PowerShell
15 lines
577 B
PowerShell
function Find-MissingProperties {
|
|
[cmdletBinding()]
|
|
param(
|
|
[Array] $Objects,
|
|
[string[]] $PossibleProperties
|
|
)
|
|
$AllProperties = Select-Properties -AllProperties -Objects $Objects
|
|
$MissingProperties = $AllProperties | Where-Object { $_ -notin 'DisplayName', 'DomainName', 'GUID', 'Linked', 'LinksCount', 'Links', 'GPOType', 'GPOCategory', 'GPOSettings' }
|
|
[Array] $ConsiderAdding = foreach ($Property in $MissingProperties) {
|
|
if ($Property -notin $PossibleProperties) {
|
|
$Property
|
|
}
|
|
}
|
|
$ConsiderAdding
|
|
} |