logo

NJP

PowerShell Probe Script Utility

Import · Dec 03, 2012 · article

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();

View original source

https://www.servicenow.com/community/in-other-news/powershell-probe-script-utility/ba-p/2293583