diff --git a/Examples/Example-29-FindGPO2-NoTranslation.ps1 b/Examples/Example-29-FindGPO2-NoTranslation.ps1 deleted file mode 100644 index 6c8d808..0000000 --- a/Examples/Example-29-FindGPO2-NoTranslation.ps1 +++ /dev/null @@ -1,20 +0,0 @@ -Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force - -$Output = Invoke-GPOZaurr -NoTranslation -$Output | Format-Table - -New-HTML { - foreach ($GPOCategory in $Output.Keys) { - New-HTMLTab -Name $GPOCategory { - if ($Output["$GPOCategory"] -is [System.Collections.IDictionary]) { - foreach ($GpoSettings in $Output["$GPOCategory"].Keys) { - New-HTMLTab -Name $GpoSettings { - New-HTMLTable -DataTable $Output[$GPOCategory][$GpoSettings] -ScrollX -DisablePaging -AllProperties -Title $GpoSettings - } - } - } else { - New-HTMLTable -DataTable $Output[$GPOCategory] -ScrollX -DisablePaging -AllProperties -Title $GpoSettings - } - } - } -} -Online -ShowHTML -FilePath $Env:UserProfile\Desktop\OutputFromFindGPO-NoTranslation.html \ No newline at end of file diff --git a/Examples/Example-29-FindGPO2.ps1 b/Examples/Example-29-FindGPO2.ps1 new file mode 100644 index 0000000..60826d8 --- /dev/null +++ b/Examples/Example-29-FindGPO2.ps1 @@ -0,0 +1,8 @@ +Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force + +# 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 +$Output | Format-Table +$Output.Reports.RegistrySettings | Format-Table * +$Output.Reports.RegistrySettings[0].Settings | Format-Table * \ No newline at end of file