3

PowerShell 查询 并 结束进程

 3 years ago
source link: https://zhuanlan.zhihu.com/p/367132669
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

PowerShell 查询 并 结束进程

Unity3D早期用户,一个深谙前端的后端开发

PowerShell 脚本

sample.ps1


$process ="*abc*"
Get-CimInstance Win32_Process | Where {$_.CommandLine -like $process } | select -ExpandProperty CommandLine # | Measure-Object -Line
Get-CimInstance Win32_Process | Where {$_.CommandLine -like $process} | Remove-CimInstance

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK