Deleting Services

Hi Guys,

We have had a bad infection of emotet virus which leaves a load of unwanted services ..

I can ID them with Get-service | Where-Object {$_.Name -match “d{1,}$”} | select Name

This gives a load of lines like this, but like a one hundred or so .. LOTS

Stopped 966389171 966389171 Stopped 986233384 986233384 Stopped 996368587 996368587

I just need pointing on how to then pass this trough to sc.exe DELETE ??

I would like this kind of effect

Get-service | Where-Object {$_.Name -match “d{1,}$”} | sc.exe DELETE Name

I know the last part is wrong . Any thoughts …

Rob

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

Leave a Reply