We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a96ac5 commit d5771ebCopy full SHA for d5771eb
src/util/process-management.ts
@@ -197,6 +197,6 @@ export async function windowsKillByCliMatch(globMatcher: string) {
197
await spawnPowerShellToResult(
198
'Get-CimInstance Win32_Process | ' +
199
`Where-Object { $_.CommandLine -like "${globMatcher}" } | ` +
200
- 'ForEach-Object { $_.Terminate() }'
+ 'Invoke-CimMethod -Name Terminate'
201
);
202
}
0 commit comments