diff --git a/Examples/Example-22-RemoveLegacyADMFiles.ps1 b/Examples/Example-22-RemoveLegacyADMFiles.ps1 index e2108ff..a4b606b 100644 --- a/Examples/Example-22-RemoveLegacyADMFiles.ps1 +++ b/Examples/Example-22-RemoveLegacyADMFiles.ps1 @@ -1,3 +1,3 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force -Remove-GPOZaurrLegacyFiles -Verbose -BackupPath $Env:USERPROFILE\Desktop\BackupADM1 -BackupDated -RemoveEmptyFolders #-WhatIf #-LimitProcessing 2 -WhatIf \ No newline at end of file +Remove-GPOZaurrLegacyFiles -Verbose -BackupPath $Env:USERPROFILE\Desktop\BackupADM1 -BackupDated -RemoveEmptyFolders -WhatIf -LimitProcessing 2 \ No newline at end of file diff --git a/Examples/Example-26-Files.ps1 b/Examples/Example-26-Files.ps1 deleted file mode 100644 index 7c91373..0000000 --- a/Examples/Example-26-Files.ps1 +++ /dev/null @@ -1,10 +0,0 @@ -Clear-Host -Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force - -$Output = Get-GPOZaurrSysvol | ForEach-Object { - $Path = $_.Path - Get-ChildItem -Path $Path -ErrorAction SilentlyContinue -Recurse -ErrorVariable err -File | ForEach-Object { - Get-FileMetaData -File $_ -Signature -HashAlgorithm 'SHA256' - } -} -$Output | Format-Table \ No newline at end of file diff --git a/Examples/Example-26-ListInvokeGpozaurrTypes.ps1 b/Examples/Example-26-ListInvokeGpozaurrTypes.ps1 new file mode 100644 index 0000000..ed958a9 --- /dev/null +++ b/Examples/Example-26-ListInvokeGpozaurrTypes.ps1 @@ -0,0 +1,6 @@ +Clear-Host +Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force + +$Dictionary = Get-GPOZaurrDictionary #-Splitter '; ' +$Dictionary | Format-Table +$Dictionary | Out-HtmlView \ No newline at end of file diff --git a/Examples/Example-28-SaveGPO.ps1 b/Examples/Example-28-SaveGPO.ps1 index 12471a5..c00fc51 100644 --- a/Examples/Example-28-SaveGPO.ps1 +++ b/Examples/Example-28-SaveGPO.ps1 @@ -1,4 +1,4 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force #Save-GPOZaurrFiles -GPOPath $ENV:USERPROFILE\Desktop\GPOExport -DeleteExisting -Save-GPOZaurrFiles -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPOExport' #-DeleteExisting \ No newline at end of file +Save-GPOZaurrFiles -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPOExportEvotec' #-DeleteExisting \ No newline at end of file diff --git a/Examples/Example-29-FindGPO0.ps1 b/Examples/Example-29-FindGPO0.ps1 index c60e6b7..1c9078c 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-FindGPO1.ps1 b/Examples/Example-29-FindGPO1.ps1 index 2d2c5a8..3d5fdb1 100644 --- a/Examples/Example-29-FindGPO1.ps1 +++ b/Examples/Example-29-FindGPO1.ps1 @@ -1,7 +1,9 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force -$Output = Invoke-GPOZaurr +$Output = Invoke-GPOZaurr -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPOExportEvotec1' $Output | Format-Table +$Output.Reports.RegistrySettings | Format-Table * +$Output.Reports.InternetExplorerZones | Format-Table * # Report to Excel of translated reports foreach ($Key in $Output.Reports.Keys) { @@ -12,7 +14,7 @@ foreach ($Key in $Output.Reports.Keys) { New-HTML { foreach ($Key in $Output.Reports.Keys) { New-HTMLTab -Name $Key { - New-HTMLTable -DataTable $Output.Reports[$Key] -Filtering + New-HTMLTable -DataTable $Output.Reports[$Key] -Filtering } } } -FilePath $Env:USERPROFILE\Desktop\GPOAnalysis.html -ShowHTML -Online \ No newline at end of file