diff --git a/Tools.ps1 b/Tools.ps1 index 4071d1e..b1d28be 100644 --- a/Tools.ps1 +++ b/Tools.ps1 @@ -152,6 +152,9 @@ switch ($PSCmdlet.ParameterSetName) } } } +## Write the log file output to the console +If ( Test-Path $LogFile ) { Get-Content -Path $LogFile | Write-Output } +Else { Write-Output "Log file not found at ""$LogFile""" } } ## Return a Powershell version object from a string