跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
首页
最近更改
随机页面
MediaWiki帮助
根类
所有页面
统计信息
分类树
特殊页面
FC
搜索
搜索
外观
登录
个人工具
登录
查看“︁Powershell无法运行脚本”︁的源代码
页面
讨论
简体中文
阅读
查看源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
查看源代码
查看历史
常规
链入页面
相关更改
页面信息
外观
移至侧栏
隐藏
←
Powershell无法运行脚本
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
<syntaxhighlight lang="powershell"> C:\脚本文件\wiki服务器备份.ps1 : File C:\脚本文件\wiki服务器备份.ps1 cannot be loaded because running scripts is disabled on this system. For more informati on, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. At line:1 char:1 + C:\脚本文件\wiki服务器备份.ps1 + ~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess PS C:\Users\Administrator> get-executionpolicy Restricted PS C:\Users\Administrator> set-executionpolicy remotesigned Execution Policy Change The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose you to the security risks described in the about_Execution_Policies help topic at https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): y PS C:\Users\Administrator> get-executionpolicy RemoteSigned </syntaxhighlight>解释一下 第一句是运行一个脚本发现无法运行 第二句为查看当前车略 第三句改变当前策略 第四句再次查看 [[分类:Powershell]]
返回
Powershell无法运行脚本
。
搜索
搜索
查看“︁Powershell无法运行脚本”︁的源代码
添加话题