diff --git a/jaws-enum.ps1 b/jaws-enum.ps1 index d6e117f..cfa1cfd 100644 --- a/jaws-enum.ps1 +++ b/jaws-enum.ps1 @@ -267,12 +267,13 @@ if ($OutputFilename.length -gt 0) Try { [io.file]::OpenWrite($OutputFilename).close() - JAWS-ENUM } Catch { Write-Warning "`nUnable to write to output file $OutputFilename, Check path and permissions" + Break } + JAWS-ENUM } else {