Skip to content

Commit d5771eb

Browse files
committed
Fix wmic-replacement terminate command
Accidentally accepted a Copilot suggestion that obviously didn't work, ah classic.
1 parent 5a96ac5 commit d5771eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/process-management.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,6 @@ export async function windowsKillByCliMatch(globMatcher: string) {
197197
await spawnPowerShellToResult(
198198
'Get-CimInstance Win32_Process | ' +
199199
`Where-Object { $_.CommandLine -like "${globMatcher}" } | ` +
200-
'ForEach-Object { $_.Terminate() }'
200+
'Invoke-CimMethod -Name Terminate'
201201
);
202202
}

0 commit comments

Comments
 (0)