强制停止并彻底删除 (Alibaba PC SAFE Service / AlibabaProtect)阿里巴巴电脑安全服务

AlibabaProtect 强制卸载工具

使用 PowerShell 脚本,一键彻底清除顽固的阿里巴巴安全服务。

 

需要管理员权限!
为了成功删除系统服务和文件,请务必在**管理员模式**下运行 PowerShell。

PowerShell 卸载方案

操作步骤

  • 1打开管理员 PowerShell:
    右键点击“开始”菜单,选择“终端(管理员)”或“Windows PowerShell(管理员)”。
  • 2复制脚本:
    点击下方代码框右上角的“复制”按钮,或手动全选复制。
  • 3执行脚本:
    将代码粘贴到 PowerShell 窗口中,然后按 Enter 键。脚本将自动完成所有卸载工作。
  • 下面是代码内容
# :: AlibabaProtect Force Uninstall Script (PowerShell)
# :: Must be run in an Administrator PowerShell session.

Write-Host "=======================================================" -ForegroundColor Green
Write-Host "     Starting Alibaba PC SAFE Service Uninstallation..." -ForegroundColor Yellow
Write-Host "     Please ensure this script is run in an Admin PowerShell!" -ForegroundColor Yellow
Write-Host "=======================================================" -ForegroundColor Green
Pause

# Step 1: Force-stop related processes
Write-Host "`n[1/4] Attempting to stop related processes..." -ForegroundColor Cyan
Stop-Process -Name "AlibabaProtect", "AlibabaProtectUI" -Force -ErrorAction SilentlyContinue
Write-Host "Processes stopped (if they were running)."

# Step 2: Stop and delete the Windows Service
Write-Host "`n[2/4] Stopping and deleting the Windows Service..." -ForegroundColor Cyan
Stop-Service -Name "AlibabaProtect" -Force -ErrorAction SilentlyContinue
sc.exe delete AlibabaProtect 2>$null
Write-Host "Service deleted (if it existed)."

# Step 3: Delete program files
Write-Host "`n[3/4] Deleting program files..." -ForegroundColor Cyan
$AlibabaPath = Join-Path ${env:ProgramFiles(x86)} "AlibabaProtect"
if (Test-Path $AlibabaPath) {
    Write-Host "Removing folder: $AlibabaPath"
    Remove-Item -Path $AlibabaPath -Recurse -Force -ErrorAction SilentlyContinue
    Write-Host "Folder successfully deleted."
} else {
    Write-Host "Program folder not found, it may have already been removed."
}

# Step 4: Clean up scheduled tasks
Write-Host "`n[4/4] Cleaning up scheduled tasks..." -ForegroundColor Cyan
Get-ScheduledTask | Where-Object { $_.TaskName -like "*AlibabaProtect*" } | Unregister-ScheduledTask -Confirm:$false -ErrorAction SilentlyContinue
Write-Host "Scheduled tasks cleaned up (if they existed)."

Write-Host "`n=======================================================" -ForegroundColor Green
Write-Host "     All operations are complete!" -ForegroundColor Yellow
Write-Host "     It is recommended to restart your computer." -ForegroundColor Yellow
Write-Host "=======================================================" -ForegroundColor Green
Pause
© 2025. This community-provided tool is designed to help users resolve common software issues.

 

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注

滚动至顶部