Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

How can I get my powershell script to terminate with a failure code without writing the ugly write-error message

$
0
0

I'm trying to get my powershell script to exit with a fail status, but I want to suppress the write-error output.  Can somebody help me terminate my script without this message?

 

Thanks


Viewing all articles
Browse latest Browse all 10624

Trending Articles