Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

Stopping Multiple Processes, Some with the same name

$
0
0

Let me start off with, for as advanced as I am in my career with windows, PowerShell is my Achilles heal. I am trying to remedy that.

I have a server that is running Solarwinds. Until we can get it rebuilt there is a problem happening where Solarwinds is chewing up all the Windows Sockets. The remedy has been to kill all of the Solarwinds Processes and then restart the software.

So I have been tasked with writing a script that we can run as a scheduled task. While I understand the Stop-Process cmdlt, how can I use it to kill multiple processes at once, some with the same name (ex. SolarWinds.BuisnessLayerHost.exe*32 shows up like 20 times as a running process)?

submitted by /u/KC_Buddyl33
[link] [comments]

The post Stopping Multiple Processes, Some with the same name appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Latest Images

Trending Articles



Latest Images