- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Exit code 1 means that an uncaught Throw happened (i.e. a terminating exception).
See Windows PowerShell Exit Codes
With the Try-Catch I mentioned earlier you can use different exit codes in the Catch block to clarify what went wrong.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference