diff --git a/Examples/Example-29-FindGPO-FromDisk-Notranslation.ps1 b/Examples/Example-29-FindGPO-FromDisk-Notranslation.ps1 deleted file mode 100644 index bc47f7d..0000000 --- a/Examples/Example-29-FindGPO-FromDisk-Notranslation.ps1 +++ /dev/null @@ -1,34 +0,0 @@ -Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force - -# Use Save-GPOZaurrFiles -GPOPath $ENV:USERPROFILE\Desktop\GPOExport -#$OutputNoTranslation = Invoke-GPOZaurr -GPOPath $Env:UserProfile\Desktop\GPOExport -NoTranslation -#$OutputNoTranslation = Invoke-GPOZaurr -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPOExportTest' -NoTranslation -$OutputNoTranslation | Format-Table * - -<# -New-HTML { - foreach ($GPOCategory in $OutputNoTranslation.Keys) { - New-HTMLTab -Name $GPOCategory { - if ($OutputNoTranslation["$GPOCategory"] -is [System.Collections.IDictionary]) { - foreach ($GpoSettings in $OutputNoTranslation["$GPOCategory"].Keys) { - New-HTMLTab -Name $GpoSettings { - New-HTMLTable -DataTable $OutputNoTranslation[$GPOCategory][$GpoSettings] -ScrollX -DisablePaging -AllProperties -Title $GpoSettings - } - } - } else { - New-HTMLTable -DataTable $OutputNoTranslation[$GPOCategory] -ScrollX -DisablePaging -AllProperties -Title $GpoSettings - } - } - } -} -Online -ShowHTML -FilePath $Env:UserProfile\Desktop\OutputFromFindGPO-NoTranslationFromDisk.html - -#> -foreach ($GPOCategory in $OutputNoTranslation.Keys) { - if ($OutputNoTranslation["$GPOCategory"] -is [System.Collections.IDictionary]) { - foreach ($GpoSettings in $OutputNoTranslation["$GPOCategory"].Keys) { - ConvertTo-Excel -DataTable $OutputNoTranslation[$GPOCategory][$GpoSettings] -AllProperties -ExcelWorkSheetName $GpoSettings -FilePath $Env:UserProfile\Desktop\Export\$GpoSettings.xlsx -AutoFilter -AutoFit - } - } else { - ConvertTo-Excel -DataTable $OutputNoTranslation[$GPOCategory][$GpoSettings] -AllProperties -ExcelWorkSheetName $GpoSettings -FilePath $Env:UserProfile\Desktop\Export\$GpoSettings.xlsx -AutoFilter -AutoFit - } -} \ No newline at end of file diff --git a/Examples/Example-29-FindGPO0.ps1 b/Examples/Example-29-FindGPO0.ps1 index c17f0a9..795ac36 100644 --- a/Examples/Example-29-FindGPO0.ps1 +++ b/Examples/Example-29-FindGPO0.ps1 @@ -1,4 +1,4 @@ -Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force +#Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force # Asses GPO based on exported data $Output = Invoke-GPOZaurr -GPOPath $Env:USERPROFILE\Desktop\GPOExport -Verbose diff --git a/Examples/Example-29-FindGPO3-FromDisk.ps1 b/Examples/Example-29-FindGPO3-FromDisk.ps1 deleted file mode 100644 index d996ff7..0000000 --- a/Examples/Example-29-FindGPO3-FromDisk.ps1 +++ /dev/null @@ -1,22 +0,0 @@ -Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force - -# Use Save-GPOZaurrFiles -GPOPath $ENV:USERPROFILE\Desktop\GPOExport - -$Output = Invoke-GPOZaurr -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPOExportTest' # -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-FromDisk.html \ No newline at end of file diff --git a/Examples/Example-29-FindGPO3.ps1 b/Examples/Example-29-FindGPO3.ps1 new file mode 100644 index 0000000..70e043f --- /dev/null +++ b/Examples/Example-29-FindGPO3.ps1 @@ -0,0 +1,9 @@ +Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force + +# Use Save-GPOZaurrFiles -GPOPath $ENV:USERPROFILE\Desktop\GPOExportAudit +$Output = Invoke-GPOZaurr -GPOPath $ENV:USERPROFILE\Desktop\GPOExportAudit # -NoTranslation +$Output | Format-Table * + +$Output.Reports | Format-Table +#$Output.Reports.LAPS | Format-Table * +$Output.Reports.LithnetFilter | Format-List * \ No newline at end of file diff --git a/Examples/Example-29-FindGPOFromDiskWork.ps1 b/Examples/Example-29-FindGPOFromDiskWork.ps1 deleted file mode 100644 index 6c4002a..0000000 --- a/Examples/Example-29-FindGPOFromDiskWork.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force - -# Use Save-GPOZaurrFiles -GPOPath $ENV:USERPROFILE\Desktop\GPOExport - -$OutputTranslation = Invoke-GPOZaurr -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPOExport' -$OutputTranslation | Format-Table -$Output = Invoke-GPOZaurr -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPOExport' -NoTranslation -$Output | Format-Table * - -#$Output.LugsSettings.LocalUsersAndGroups | Format-List * - -$GPOEntry = $Output.LugsSettings.LocalUsersAndGroups[0] - -$CreateGPO = @{} -foreach ($User in $GPOEntry.User) { - # $User | Format-Table - # $User.Properties | Format-Table -} - - -foreach ($Group in $GPOEntry.Group) { - #$Group | Format-Table - $Group.Properties | Format-Table - $Group.Properties.Members | Format-Table -} \ No newline at end of file diff --git a/Examples/Example-29-FindGPOHtmlOutput.ps1 b/Examples/Example-29-FindGPOHtmlOutput.ps1 deleted file mode 100644 index 67e12e7..0000000 --- a/Examples/Example-29-FindGPOHtmlOutput.ps1 +++ /dev/null @@ -1,6 +0,0 @@ -Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force - -# Use Save-GPOZaurrFiles -GPOPath $ENV:USERPROFILE\Desktop\GPOExport - -$Output = Invoke-GPOZaurr -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPOExportTest' -NoTranslation -$Output | Format-Table * \ No newline at end of file diff --git a/Examples/Example-29-FindGPOTranslationHelp.ps1 b/Examples/Example-29-FindGPOTranslationHelp.ps1 deleted file mode 100644 index 0ca1c4b..0000000 --- a/Examples/Example-29-FindGPOTranslationHelp.ps1 +++ /dev/null @@ -1,11 +0,0 @@ -Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force - -# This is purely for building GPO Dictionary, mostly for development needs to help asses what is there - -$Output = Invoke-GPOZaurr -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPOExportTest' -NoTranslation -#$Output | Format-Table * - -$LookingFor = $Output | Select-GPOTranslation -Category 'SecuritySettings' -Settings 'UserRightsAssignment' -$LookingFor | Format-Table -$LookingFor.Types | Format-Table -#$LookingFor.Data | Format-Table \ No newline at end of file