Executing PowerShell Script via ecc_queue

nikita_mironov
Kilo Guru

My goal is to execute PowerShell Script (dynamically prepared by a business rule/workflow) on the MID Server without having Runbook Plug-in enabled.

I would like to execute a PowerShell Script through ecc_queue message in the same way as we execute programs/commands in Command Line (http://wiki.servicenow.com/index.php?title=ECC_Queue_Command_Line_Worker)

What should be the "Topic" field value in this case? For command line it is "Command".

Or I should go for Runbook Plug-in anyway?

2 REPLIES 2

tony_fugere
Mega Guru

ServiceNow's official stance on this is likely to be Runbook. You will receive a huge library of ServiceNow upgradeable/supportable automation tools that will make this much simpler to implement than attempting to build custom tools of your own.

However, if you set Topic "Powershell" and configure the MID server to use PS, you can do it that way. The parameter node still works the same as described in the Wiki link above.


nikita_mironov
Kilo Guru

Thanks Tony. I'll give it a try.