Run CMD in MID Server through Script in Instance

MohdAr
Tera Contributor

I have installed AWS Command Line Interface (CLI) in my MID Server. Thus, by running Windows CMD, i can move files from local MID Server to AWS S3 Bucket. 

Question :

1. How I can run CMD command through my Instance like scripting in Script Include, or Scheduled Job?

2. How to capture response in CMD (after command) into ServiceNow system log?

The reason is I need to automate the job without manually run CMD in MID Server.

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@MohdAr 

you can run it via powershell using ecc queue

Trying to trigger a .cmd to run on the MIDServer with no success.... 

How to run a Batch File on a MID Server, using a MID Server Script File and 'Command' Topic ECC Queu... 

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