This commit is contained in:
Przemyslaw Klys
2020-06-28 10:32:02 +02:00
parent 97ffc8bfd5
commit 2f25064090
+5 -2
View File
@@ -15,11 +15,14 @@
# It's possible given small input of GPOs that I work with that this is not all... and needs updates
$AllProperties = Select-Properties -AllProperties -Objects $InputData.$Category.$Settings
$MissingProperties = $AllProperties | Where-Object { $_ -notin 'DisplayName', 'DomainName', 'GUID', 'Linked', 'LinksCount', 'Links', 'GPOType', 'GPOCategory', 'GPOSettings' }
foreach ($Property in $MissingProperties) {
[Array] $ConsiderAdding = foreach ($Property in $MissingProperties) {
if ($Property -notin $Script:GPODitionary[$Report]['PossibleProperties']) {
Write-Warning "Invoke-Translation - We're missing property for $Category / $Settings - $Property"
$Property
}
}
if ($ConsiderAdding.Count -gt 0) {
Write-Warning "Invoke-Translation - We're missing property for $Category / $Settings - ($($ConsiderAdding -join ','))"
}
# Here we try to translate given GPO entries according to predefined dictionary - so called prettify
# Dictionary will need a lot of work and engine some improvements
foreach ($GPOEntry in $InputData.$Category.$Settings) {