天翼云服务器 开启基础防护

网址:中国电信-天翼云-云原生安全

需要使用cmd执行

powershell -executionpolicy bypass -c "(New-Object System.Net.WebClient).DownloadFile('http://169.254.169.254:5662/download/eShield-agent/upgrader/windows/x86/ctcss_agent_installer.exe',$ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath('ctcss_agent_installer.exe'))"; ".\ctcss_agent_installer.exe"

  image

 为什么是用cmd.exe执行powershell命令?

cmd.exe(命令提示符) 只是外壳入口 ,只是在 cmd 里面调用启动 PowerShell 程序。

-executionpolicy bypass 用于临时绕过脚本执行策略限制,不用手动改全局策略

-c 后面双引号内的命令为实际powershell执行的命令

posted @ 2026-08-20 16:06  人间春风意  阅读(2)  评论(0)    收藏  举报