干掉讨厌的迅雷

迅雷下载完,还在后台,硬盘狂闪。服务禁用了,下次启动还会激活, "流氓软件“。
自己编了段脚本来干掉XLServiceplatform,把以下脚本另存为.ps1。

$procid = Get-Process ThunderPlatform | select -expand id
if ($procid){
    Stop-Process $procid
    Write-Host "Running Process Killed!"
}
else {
    Write-Host "Thunder Process not found!"
}

$regid = Test-Path HKLM:\SYSTEM\CurrentControlSet\Services\XLServicePlatform
if ($regid){
    Remove-Item HKLM:\SYSTEM\CurrentControlSet\Services\XLServicePlatform -recurse
    Write-Host 'XL Service Entry Killed!'
}
else {
    Write-Host "XL Service Entry not found!"
}
$null = [Console]::ReadKey('?')

你可能感兴趣的:(干掉讨厌的迅雷)