Using powershell scripts on mid servers

Austin27
Tera Contributor

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 

0 REPLIES 0