From ed417e7d9e0b080c53c03ff0a468e7e8ffdd483c Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Sat, 24 Oct 2020 20:30:35 +0200 Subject: [PATCH] Update --- Examples/Example-29-FindGPO1.ps1 | 4 ++-- Examples/Example-29-FindGPO2.ps1 | 2 +- Examples/Example-29-FindGPO3.ps1 | 2 +- Examples/Example-29-FindGPO4.ps1 | 2 +- Examples/Example-29-FindGPO5.ps1 | 2 +- Examples/Example-29-FindGPO7.ps1 | 2 +- Examples/Example-40-ShowGPO.ps1 | 8 ++++++++ 7 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 Examples/Example-40-ShowGPO.ps1 diff --git a/Examples/Example-29-FindGPO1.ps1 b/Examples/Example-29-FindGPO1.ps1 index d8cc24c..d52d986 100644 --- a/Examples/Example-29-FindGPO1.ps1 +++ b/Examples/Example-29-FindGPO1.ps1 @@ -1,7 +1,7 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force -#$Output = Invoke-GPOZaurr -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPODefender' -$Output = Invoke-GPOZaurr -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPOExport' -Type WindowsHelloForBusiness +#$Output = Invoke-GPOZaurrContent -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPODefender' +$Output = Invoke-GPOZaurrContent -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPOExport' -Type WindowsHelloForBusiness $Output | Format-Table $Output.WindowsDefenderExploitGuard | Format-Table $Output.Reports.RegistrySetting | Format-Table diff --git a/Examples/Example-29-FindGPO2.ps1 b/Examples/Example-29-FindGPO2.ps1 index 7ade81c..438a10d 100644 --- a/Examples/Example-29-FindGPO2.ps1 +++ b/Examples/Example-29-FindGPO2.ps1 @@ -2,7 +2,7 @@ # This gets the same thing as earlier examples # with a difference where one entry per gpo and all settings for that GPO is stored under settings property. -$Output = Invoke-GPOZaurr -SingleObject -Verbose +$Output = Invoke-GPOZaurrContent -SingleObject -Verbose $Output | Format-Table $Output.Reports.RegistrySettings | Format-Table * $Output.Reports.RegistrySettings[0].Settings | Format-Table * \ No newline at end of file diff --git a/Examples/Example-29-FindGPO3.ps1 b/Examples/Example-29-FindGPO3.ps1 index abce61f..4f5c96e 100644 --- a/Examples/Example-29-FindGPO3.ps1 +++ b/Examples/Example-29-FindGPO3.ps1 @@ -4,7 +4,7 @@ # This will allow you to process offline data more than once # It's useful for when you want to request different types -$Output = Invoke-GPOZaurr -GPOPath $ENV:USERPROFILE\Desktop\GPOExportAudit -Extended -Verbose +$Output = Invoke-GPOZaurrContent -GPOPath $ENV:USERPROFILE\Desktop\GPOExportAudit -Extended -Verbose $Output | Format-Table * $Output.Reports | Format-Table diff --git a/Examples/Example-29-FindGPO4.ps1 b/Examples/Example-29-FindGPO4.ps1 index d7a0ab0..c3b97f8 100644 --- a/Examples/Example-29-FindGPO4.ps1 +++ b/Examples/Example-29-FindGPO4.ps1 @@ -1,4 +1,4 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force -$Output = Invoke-GPOZaurr -Verbose -OutputType HTML, Object -Open +$Output = Invoke-GPOZaurrContent -Verbose -OutputType HTML, Object -Open $Output | Format-Table \ No newline at end of file diff --git a/Examples/Example-29-FindGPO5.ps1 b/Examples/Example-29-FindGPO5.ps1 index 13bbb5c..6b8ec56 100644 --- a/Examples/Example-29-FindGPO5.ps1 +++ b/Examples/Example-29-FindGPO5.ps1 @@ -1,7 +1,7 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force # Asses GPO based on exported data -$Output = Invoke-GPOZaurr -GPOPath $Env:USERPROFILE\Desktop\GPOExport_2020.10.12 -Verbose -Type RegistrySetting +$Output = Invoke-GPOZaurrContent -GPOPath $Env:USERPROFILE\Desktop\GPOExport_2020.10.12 -Verbose -Type RegistrySetting $Output | Format-Table * diff --git a/Examples/Example-29-FindGPO7.ps1 b/Examples/Example-29-FindGPO7.ps1 index 92b8f7b..e6a6604 100644 --- a/Examples/Example-29-FindGPO7.ps1 +++ b/Examples/Example-29-FindGPO7.ps1 @@ -1,4 +1,4 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force -$Output = Invoke-GPOZaurr -GPOPath $ENV:USERPROFILE\Desktop\GPOTestingUserAccess -Verbose +$Output = Invoke-GPOZaurrContent -GPOPath $ENV:USERPROFILE\Desktop\GPOTestingUserAccess -Verbose $Output | Format-Table * \ No newline at end of file diff --git a/Examples/Example-40-ShowGPO.ps1 b/Examples/Example-40-ShowGPO.ps1 new file mode 100644 index 0000000..dfa573a --- /dev/null +++ b/Examples/Example-40-ShowGPO.ps1 @@ -0,0 +1,8 @@ +Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force + +Invoke-GPOZaurr -FilePath $PSScriptRoot\Reports\GPOZaurr.html -Verbose -Type GPOOrphans, GPOConsistency, GPOList, GPOPermissionsRoot +#Invoke-GPOZaurr -FilePath $PSScriptRoot\Reports\GPOZaurr.html -Verbose -Type GPOOrphans, GPOConsistency, GPOList, GPOPermissionsRoot, NetLogon, GPOFiles +Invoke-GPOZaurr -FilePath $PSScriptRoot\Reports\GPOZaurr.html -Verbose -Type GPOConsistency +#Invoke-GPOZaurr -FilePath $PSScriptRoot\Reports\GPOZaurr.html -Verbose -Type GPOOrphans, GPOConsistency +#Invoke-GPOZaurr -FilePath $PSScriptRoot\Reports\GPOZaurr.html -Verbose -Type GPOList +#Optimize-HTML -File 'C:\Support\GitHub\GpoZaurr\Examples\Reports\GPOZaurr.html' -OutputFile 'C:\Support\GitHub\GpoZaurr\Examples\Reports\GPOZaurr-Minified.html'