Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

jason_petty
Tera Expert

This was created based on Chris Maloy's Command Line Probe Script Utility Blog (http://community.servicenow.com/blog/christophermaloy/command-line-probe-script-include)

I modified this to send PowerShell scripts to the MID server.

Example of script to call it:



var powerShellProbe = new PowershellProbeES("MIDServer1");
powerShellProbe.setScript("get-process | where-object {$_.WS -ge 1048576} | where-object {$_.processname -ne 'powershell'} | sort-object WS —descending | convertto-html -property Name,WS > c:\\Inetpub\\wwwroot\\ps.html");
powerShellProbe.create();

7 Comments