mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-07-26 11:49:17 +00:00
12 lines
504 B
PowerShell
12 lines
504 B
PowerShell
Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
|
|
|
|
# Asses GPO based on exported data
|
|
$Output = Invoke-GPOZaurr -GPOPath $Env:USERPROFILE\Desktop\GPOExport -Verbose
|
|
$Output | Format-Table *
|
|
|
|
# Export to Excel
|
|
foreach ($Key in $Output.Reports.Keys) {
|
|
$Output.Reports[$Key] | ConvertTo-Excel -FilePath $Env:USERPROFILE\Desktop\EFGPOAnalysis.xlsx -ExcelWorkSheetName $Key -AutoFilter -AutoFit -FreezeTopRowFirstColumn
|
|
}
|
|
# Show the Excel
|
|
Start-Process "$Env:USERPROFILE\Desktop\EFGPOAnalysis.xlsx" |