In a script:
Get-Process | Where-Object { $_.ProcessName -eq 'SomeDaemon' } | Stop-Process
Or at the command line:
ps | ? { $_.ProcessName -eq 'SomeDaemon' } | kill
Get-Process | Where-Object { $_.ProcessName -eq 'SomeDaemon' } | Stop-Process
Or at the command line:
ps | ? { $_.ProcessName -eq 'SomeDaemon' } | kill
No comments yet.