window7运行powershell
来源:互联网 发布:阿里云新用户邀请码 编辑:程序博客网 时间:2024/05/16 11:27
window本身自带powershell
运行powershell报错:
PS C:\Windows\system32> D:\Workshop\Powershell\Sprinkler\src\Scripts\SPRINKLE.ps1无法加载文件 D:\Workshop\Powershell\Sprinkler\src\Scripts\SPRINKLE.ps1,因为在此系统中禁止执行脚本。有关详细信息,请参阅 "get-help about_signing"。所在位置 行:1 字符: 58+ D:\Workshop\Powershell\Sprinkler\src\Scripts\SPRINKLE.ps1 <<<< + CategoryInfo : NotSpecified: (:) [], PSSecurityException + FullyQualifiedErrorId : RuntimeException
可以用命令,把操作设置为可信任的操作:
set-executionpolicy remotesigned
但是再次运行的时候,仍然报错:
以上这段代码提示:对注册表项“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run”的访问被拒绝。
可以用管理员身份运行的时候,问题就解决了~
0 0
- window7运行powershell
- window7 下运行hadoop
- PowerShell 运行ps1文件
- Window7
- Powershell 获取当前运行服务
- Powershell 编写和运行脚本
- 如何用C#运行PowerShell脚本
- PowerShell 2.0 脚本无法运行问题解决方法
- 如何运行PowerShell的脚本文件
- 运行PowerShell脚本有两种方式(转)
- 如何在远程计算机上运行PowerShell
- Powershell 中直接运行 Python 的文件
- 使用定时任务运行powershell脚本
- PowerShell 中通过 Plink 运行 SSH 命令
- 如何在PowerShell中运行virtualenv?
- 如何在PowerShell中运行VIM
- Win10 下面PowerShell 运行python2.7
- 提升 window7运行速度100%九大技巧
- leetCode(44):Implement Stack using Queues
- 黑马程序员-Foundation框架之NSArray类
- Linux上实现canny边缘检测
- 搭建docker内网私服(docker-registry with nginx&ssl on centos)
- PAT (Advanced Level) 1008. Elevator (20) 电梯总上升和下降次数
- window7运行powershell
- spark/MLlib分类与回归、聚类
- #28 Implement strStr()
- Splay树(插入、删除、区间最大字段和)—— SPOJ - GSS6 Can you answer these queries VI
- poj 2010 优先队列+贪心
- 集群搭建时候遇到的一个问题
- 事件默认行为
- NYOJ324 猴子吃桃问题
- Hibernate 与mybatis的区别