Home > PowerShell > Get information about remote process using powershell

Get information about remote process using powershell

Today I came across a requirement to gather information about the process running in remote computer. Basically I want to know when the process is started. In this case you can’t use process explorer as it doesn’t have option to connect to remote computer. So, I quickly wrote a small script to get this information.
[powershell]$myproc = gwmi -Class Win32_Process -ComputerName moose -Filter "caption = ‘outlook.exe’"

([wmi]”).ConvertToDatetime($myproc.creationdate)[/powershell]

No related content found.

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>