From 138a0f411e000f74a2d88e7734cea435e76bd446 Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Tue, 9 Feb 2021 17:56:56 +0100 Subject: [PATCH] Added information about filepath --- Public/Invoke-GPOZaurr.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Public/Invoke-GPOZaurr.ps1 b/Public/Invoke-GPOZaurr.ps1 index e954bba..fa9b837 100644 --- a/Public/Invoke-GPOZaurr.ps1 +++ b/Public/Invoke-GPOZaurr.ps1 @@ -144,7 +144,10 @@ # Generate pretty HTML $TimeLogHTML = Start-TimeLog - Write-Color -Text '[i]', '[HTML ] ', 'Generating HTML report' -Color Yellow, DarkGray, Yellow + if (-not $FilePath) { + $FilePath = Get-FileName -Extension 'html' -Temporary + } + Write-Color -Text '[i]', '[HTML ] ', "Generating HTML report ($FilePath)" -Color Yellow, DarkGray, Yellow New-HTML -Author 'Przemysław Kłys' -TitleText 'GPOZaurr Report' { New-HTMLTabStyle -BorderRadius 0px -TextTransform capitalize -BackgroundColorActive SlateGrey New-HTMLSectionStyle -BorderRadius 0px -HeaderBackGroundColor Grey -RemoveShadow