Running Powershell Scripts on MID server - Unable to find script(s) specified in parameters

Community Alums
Not applicable

Hi,

 

I'm using this article by @Community Alums  (based upon John J Andersens blog) as a guide on how to run PowerShell scripts from code. When I run the execute method a record is created on the ecc_queue as expected:

 

TimDScott_0-1740563023195.png

I'm getting an error, saying that the script file can't be found:

 

TimDScott_1-1740563084797.png

I've verified that the script is in the correct location on the mid server.

 

Has anyone used this approach and had the same issue, maybe some of the info is now out of date?

 

Thanks,

 

Tim.

 

 

 

 

 

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Community Alums 

If you have followed that article then it should work

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Community Alums
Not applicable

Hi Ankur, I have followed the article, I believe that the ecc output record is being generated correctly, just can't work out why the powershell script can't be found!