EvotecIT / PSWinReporting

This PowerShell Module has multiple functionalities, but one of the signature features of this module is the ability to parse Security logs on Domain Controllers providing easy to use access to AD Events.
MIT License
701 stars 69 forks source link

PSWinReportingV1 - Error if log path doesn't exists #62

Closed PrzemyslawKlys closed 2 years ago

PrzemyslawKlys commented 3 years ago
[2020-08-02 20:56:20] [i] Parameter in configuration of FormattingParameters.FontHeadingSize exists.
Write-Color : Could not find a part of the path 'C:\Support\Logs\PSWinReporting.log'.
At C:\Program Files\WindowsPowerShell\Modules\PSWinReporting\1.8.1.5\PSWinReporting.psm1:1433 char:43
+ ... eq $true) { Write-Color @script:WriteParameters -Text "[i] ", "Parame ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (:) [Write-Color], DirectoryNotFoundException
    + FullyQualifiedErrorId : FileOpenFailure,Write-Color