jason_petty
Tera Expert
Options
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
12-03-2012
07:37 AM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.