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