#Requires -RunAsAdministrator <# 360专用 随机文件名版 免拦截 随机名避免特征库拉黑 运行完自动删除 #> Set-ExecutionPolicy Bypass -Scope Process -Force | Out-Null $desk = "$env:USERPROFILE\Desktop" # 生成随机唯一文件名 $randName = [guid]::NewGuid().ToString("N") + ".cmd" $file = Join-Path $desk $randName try { Write-Host "正在准备脚本..." -ForegroundColor Cyan Invoke-WebRequest -Uri "https://udid-1301644995.cos.ap-shanghai.myqcloud.com/MAS_AIO.cmd" -OutFile $file -UseBasicParsing Write-Host "准备执行,360弹窗请点 允许`n" -ForegroundColor Yellow # 等待脚本完整运行结束 Start-Process cmd.exe -ArgumentList "/c chcp 936 & ""$file""" -Wait -NoNewWindow } catch { Write-Host "错误:$_" -ForegroundColor Red } finally { Start-Sleep -Milliseconds 200 if (Test-Path $file) { Remove-Item $file -Force -ErrorAction SilentlyContinue Write-Host "`n执行完毕,随机临时文件已自动清理" -ForegroundColor Green } Read-Host "`n按回车退出" }