mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-07-26 11:49:17 +00:00
22 lines
937 B
PowerShell
22 lines
937 B
PowerShell
Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
|
|
|
|
#$Output = Invoke-GPOZaurr -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPODefender'
|
|
$Output = Invoke-GPOZaurr -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPOExport' -Type WindowsHelloForBusiness
|
|
$Output | Format-Table
|
|
$Output.WindowsDefenderExploitGuard | Format-Table
|
|
$Output.Reports.RegistrySetting | Format-Table
|
|
|
|
# Report to Excel of translated reports
|
|
foreach ($Key in $Output.Keys) {
|
|
$Output[$Key] | ConvertTo-Excel -FilePath $Env:USERPROFILE\Desktop\GPOAnalysis.xlsx -ExcelWorkSheetName $Key -AutoFilter -AutoFit -FreezeTopRowFirstColumn
|
|
}
|
|
|
|
# Report to HTML of translated reports
|
|
New-HTML {
|
|
New-HTMLTableOption -DataStore JavaScript
|
|
foreach ($Key in $Output.Keys) {
|
|
New-HTMLTab -Name $Key {
|
|
New-HTMLTable -DataTable $Output[$Key] -Filtering -Title $Key
|
|
}
|
|
}
|
|
} -FilePath $Env:USERPROFILE\Desktop\GPOAnalysis.html -ShowHTML -Online |