mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-07-26 20:00:09 +00:00
15 lines
689 B
PowerShell
15 lines
689 B
PowerShell
Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
|
|
|
|
# Use Save-GPOZaurrFiles -GPOPath $ENV:USERPROFILE\Desktop\GPOExportAudit
|
|
|
|
# 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 | Format-Table *
|
|
$Output.Reports | Format-Table
|
|
|
|
# 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" |