The Get-Process cmdlet can fetch us this information:
- At the prompt, type the following to get all of the parameters that the Get-Process cmdlet accepts:
PS> Get-Help Get-Process
- We see a parameter, IncludeUserName (the name suggests it is a switch parameter). Get more information on it:
PS> Get-Help Get-Process -Parameter IncludeUserName
- Run the following command:
PS> Get-Process -IncludeUserName
- Filter out the processes started by you. We will use grep for this operation until we learn how to filter in PowerShell. You can replace $env:USER with your username, if you would like:
PS> Get-Process -IncludeUserName | ...