From 46947e0ee985e737dc849c1e026b39622052b66d Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Thu, 17 Oct 2024 19:34:06 +0200 Subject: [PATCH] Improve output to html --- Private/Invoke.GPOZaurrOrganizationalUnit.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Private/Invoke.GPOZaurrOrganizationalUnit.ps1 b/Private/Invoke.GPOZaurrOrganizationalUnit.ps1 index 4f0c47f..afd5971 100644 --- a/Private/Invoke.GPOZaurrOrganizationalUnit.ps1 +++ b/Private/Invoke.GPOZaurrOrganizationalUnit.ps1 @@ -133,6 +133,7 @@ } } New-HTMLSection -Name 'Group Policy Organizational Units' { + # Not adding ScrollX to hide Objects, as it can get quite big New-HTMLTable -DataTable $Script:Reporting['GPOOrganizationalUnit']['Data'] -Filtering { New-TableHeader -ResponsiveOperations none -Names 'GPONames', 'Objects' New-HTMLTableCondition -Name 'Status' -ComparisonType string -Value 'Unlink GPO, Delete OU' -BackgroundColor Salmon -Row @@ -141,7 +142,7 @@ New-HTMLTableCondition -Name 'Status' -ComparisonType string -Value 'OK' -BackgroundColor LightGreen -Row New-HTMLTableCondition -Name 'Status' -ComparisonType string -Value 'Excluded' -BackgroundColor DeepSkyBlue -Row New-HTMLTableCondition -Name 'Status' -ComparisonType string -Value 'Excluded, Default OU' -BackgroundColor DeepSkyBlue -Row - } -PagingOptions 10, 20, 30, 40, 50 -ExcludeProperty GPO + } -PagingOptions 7, 15, 30, 45, 60 -ExcludeProperty GPO } if ($Script:Reporting['Settings']['HideSteps'] -eq $false) { New-HTMLSection -Name 'Steps to fix Group Organizational Units' { @@ -257,7 +258,7 @@ New-HTMLTable -DataTable $Script:Reporting['GPOOrganizationalUnit']['WarningsAndErrors'] -Filtering { New-HTMLTableCondition -Name 'Type' -Value 'Warning' -BackgroundColor SandyBrown -ComparisonType string -Row New-HTMLTableCondition -Name 'Type' -Value 'Error' -BackgroundColor Salmon -ComparisonType string -Row - } -PagingOptions 10, 20, 30, 40, 50 + } -PagingOptions 7, 15, 30, 45, 60 } } }