Powershell Oneliners
Jump to navigation
Jump to search
Get process owner
Get-WmiObject Win32_Process -Filter "name='sensu-agent.exe'" | Select Name, @{Name="UserName";Expression={$_.GetOwner().Domain+"\"+$_.GetOwner().User}} | Sort-Object UserName, Name