Using powershell scripts on mid servers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2024 06:04 AM
Morning community. When running powershell scripts on mid-servers, how do I mark the record in the ecc_queue as error if the script failed in some part of it. Currently, the ecc_queue record always gets marked as processed no matter what happens to it. I saw in the documentation you can add tags and such but didn't see anything about how to mark the script as an error. If this isn't the correct way to go about it, is there another recommended method or do I just add custom parameters like <error_ouput> some text <error_output\> and then have to parse it out? I can get everything to run properly but just trying to make it easier to troubleshoot if something fails in the script.
Thank you
Austin