天翼云服务器 开启基础防护
需要使用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"

为什么是用cmd.exe执行powershell命令?
cmd.exe(命令提示符) 只是外壳入口 ,只是在 cmd 里面调用启动 PowerShell 程序。
-executionpolicy bypass 用于临时绕过脚本执行策略限制,不用手动改全局策略
-c 后面双引号内的命令为实际powershell执行的命令
作者:人间春风意
扫描左侧的二维码可以赞赏

本作品采用署名-非商业性使用-禁止演绎 4.0 国际 进行许可。

浙公网安备 33010602011771号