Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How to run a powershell script on the MID server?

Max Nowak
Kilo Sage

Hi,

I need to execute a Powershell script directly on the MID server (not use the MID server as a proxy and execute Powershell on a different server). What's the easiest way to do this? I planned on triggering the execution through a scheduled job, but if there's an easier way, I can probably adapt.

I looked at the Powershell Step in Flow Designer, but I'm not really sure how I would achieve the execution directly ON the mid server  - would I just create a connection alias for the mid server?

Any help is greatly appreciated,

Max

1 ACCEPTED SOLUTION

sachin_namjoshi
Kilo Patron
Kilo Patron

Check below article which has steps to run PS script from instance

 

https://community.servicenow.com/community?id=community_article&sys_id=0cf18778dbb348d4f7fca851ca961998

 

Regards,

Sachin

View solution in original post

2 REPLIES 2

sachin_namjoshi
Kilo Patron
Kilo Patron

Check below article which has steps to run PS script from instance

 

https://community.servicenow.com/community?id=community_article&sys_id=0cf18778dbb348d4f7fca851ca961998

 

Regards,

Sachin

That was helpful, thanks.