mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-07-26 11:49:17 +00:00
Add default file path handling for HTML report generation, fixes #58
This commit is contained in:
@@ -126,6 +126,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (-not $FilePath) {
|
||||||
|
$FilePath = Get-FileName -Extension 'html' -Temporary -Name "GpoZaurr"
|
||||||
|
}
|
||||||
|
|
||||||
# Build data
|
# Build data
|
||||||
foreach ($T in $Script:GPOConfiguration.Keys) {
|
foreach ($T in $Script:GPOConfiguration.Keys) {
|
||||||
if ($Script:GPOConfiguration[$T].Enabled -eq $true) {
|
if ($Script:GPOConfiguration[$T].Enabled -eq $true) {
|
||||||
@@ -201,10 +205,6 @@
|
|||||||
if (-not $SplitReports) {
|
if (-not $SplitReports) {
|
||||||
# Generate pretty HTML
|
# Generate pretty HTML
|
||||||
$TimeLogHTML = Start-TimeLog
|
$TimeLogHTML = Start-TimeLog
|
||||||
if (-not $FilePath) {
|
|
||||||
$FilePath = Get-FileName -Extension 'html' -Temporary
|
|
||||||
}
|
|
||||||
|
|
||||||
New-HTMLReportAll -FilePath $FilePath -Online:$Online -HideHTML:$HideHTML -Type $Type
|
New-HTMLReportAll -FilePath $FilePath -Online:$Online -HideHTML:$HideHTML -Type $Type
|
||||||
|
|
||||||
$TimeLogEndHTML = Stop-TimeLog -Time $TimeLogHTML -Option OneLiner
|
$TimeLogEndHTML = Stop-TimeLog -Time $TimeLogHTML -Option OneLiner
|
||||||
|
|||||||
Reference in New Issue
Block a user