Retrieving process list and owner name remotely

In this article I’ll show you how to retrieve a process list with owner name remotely. I assume that most administrators are familiar with the PowerShell Get-Process cmdlet. One of  the Get-Process parameter is “IncludeUserName“. With the  PowerShell function below you can check processes which are run under a specific username and on a specific server or servers.

To get processes from all computers I created a PowerShell function. This function uses the Invoke-Command and placed the results into a array . The results can be displayed in a PowerShell console, Grid-View window or can be saved to CSV file.

PowerShell function

Save the PowerShell function to Get-UserProcess.psm1 and copy it to C:\Program Files\WindowsPowerShell\Modules\Get-UserProcess.

Examples

Result:

Result:

Result:

I really like to hear what you have to say about this article:

  • Was this article helpful for you or do you have any questions?
  • Do you have additions, suggestions or any other ideas?
  • Just let me know by leaving a comment below.

Thank you for spending some time at my site and in my blog. I hope you come to visit again soon 😉

About Lex van der Horst 201 Articles
Techwire

Be the first to comment

Leave a Reply