39 Star 222 Fork 51

chuanjiao10 / kasini3000

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
zkj_win_k开启本机powershell脚本执行权限.bat 812 Bytes
一键复制 编辑 原始数据 按行查看 历史
echo 下面代码,在管理员权限cmd中运行,在管理员权限powershell中运行均可。
echo 如果使用powershell remoting远程。主控机,被控机,都要用管理员权限运行一遍。
echo 本【开启权限的脚本】,win7,win8,win10,win2008,win2012,win2016,win2019通用。
"C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe" -command "Set-ExecutionPolicy -ExecutionPolicy Unrestricted"
"C:\WINDOWS\syswow64\windowspowershell\v1.0\powershell.exe" -command "Set-ExecutionPolicy -ExecutionPolicy Unrestricted"
& "C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe" -command "Set-ExecutionPolicy -ExecutionPolicy Unrestricted"
& "C:\WINDOWS\syswow64\windowspowershell\v1.0\powershell.exe" -command "Set-ExecutionPolicy -ExecutionPolicy Unrestricted"
powershell.exe -c "Set-PSRepository -Name PSGallery -InstallationPolicy Trusted"
PowerShell
1
https://gitee.com/chuanjiao10/kasini3000.git
git@gitee.com:chuanjiao10/kasini3000.git
chuanjiao10
kasini3000
kasini3000
master

搜索帮助