- Get a list of servers
- For every server on that list:
- use get-wmiobject to get the list of open processes that match my search term.
- Select relevant fields like computername, starttime, processid, and the exec path
- Include a rounded up/down number of hours the process has been up
- Write to a table.
Powershell has some crazy syntax. The $starttime is one example.
The most annoying part was having to get the times converted from the WMI format (MDTF) to something normal.