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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2025 01:47 AM - edited 02-26-2025 01:58 AM
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:
I'm getting an error, saying that the script file can't be found:
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2025 02:07 AM
@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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2025 02:14 AM - edited 02-26-2025 03:47 AM
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!