mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-09-03 22:25:22 +00:00
Example update
This commit is contained in:
@@ -1,9 +1,13 @@
|
|||||||
Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
|
Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
|
||||||
|
|
||||||
# Use Save-GPOZaurrFiles -GPOPath $ENV:USERPROFILE\Desktop\GPOExportAudit
|
# Use Save-GPOZaurrFiles -GPOPath $ENV:USERPROFILE\Desktop\GPOExportAudit
|
||||||
$Output = Invoke-GPOZaurr -GPOPath $ENV:USERPROFILE\Desktop\GPOExportAudit # -NoTranslation
|
$Output = Invoke-GPOZaurr -GPOPath $ENV:USERPROFILE\Desktop\GPOExportAudit -Verbose #-SkipCleanup #-Type PoliciesPrinters, Policies
|
||||||
$Output | Format-Table *
|
$Output | Format-Table *
|
||||||
|
|
||||||
$Output.Reports | Format-Table
|
$Output.Reports | Format-Table
|
||||||
#$Output.Reports.LAPS | Format-Table *
|
|
||||||
$Output.Reports.LithnetFilter | Format-List *
|
# Export to Excel
|
||||||
|
foreach ($Key in $Output.Reports.Keys) {
|
||||||
|
$Output.Reports[$Key] | ConvertTo-Excel -FilePath $Env:USERPROFILE\Desktop\GPOAnalysis.xlsx -ExcelWorkSheetName $Key -AutoFilter -AutoFit -FreezeTopRowFirstColumn
|
||||||
|
}
|
||||||
|
Start-Process "$Env:USERPROFILE\Desktop\GPOAnalysis.xlsx"
|
||||||
Reference in New Issue
Block a user