当前位置:网站首页>PowerShell: because running scripts is prohibited on this system, the solution
PowerShell: because running scripts is prohibited on this system, the solution
2022-06-13 04:36:00 【A boy looking forward to the future】
The article is from whale :https://www.jingyua.com
Make it up by yourself PowerShell I suddenly encountered this problem during the script :
Unable to load file C:\Users\DH\Desktop\cs\rename.ps1, Because scripts are not allowed to run on this system . For more information , see also https:/go.microsoft.com/fwlink/?LinkID=135170 Medium about_Execution_Policies.
+ CategoryInfo : SecurityError: (:) [],ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnauthorizedAccess

Screenshot of the problem
After checking, it was found that it was started on the computer Windows PowerShell when , The execution strategy is likely to be Restricted( default setting ).
Restricted Execution policy does not allow any scripts to run .
AllSigned and RemoteSigned Execution strategies prevent Windows PowerShell Run a script without a digital signature .
This topic explains how to run the selected unsigned script ( Even when the execution strategy is RemoteSigned Under the circumstances ), It also explains how to The script is signed for your own use .
of Windows PowerShell Details of the execution policy , see also about_Execution_Policy.
Want to know Active execution policy on the computer , open PowerShell Then input get-executionpolicy

Active execution strategy
Open as administrator PowerShell Input set-executionpolicy remotesigned

choice Y Then the computer can execute the script file written by itself
边栏推荐
- Day45. data analysis practice (1): supermarket operation data analysis
- MySQL index
- Ctfshow SQL injection (211-230)
- PHP development 14 compilation of friendship link module
- Notes on uni app
- Latex operation
- Gets or sets the content in an object
- Basic syntax example for go
- Blockly learning ----2 Code generation, grid, scaling, events, storage
- 如何优雅的处理async/await错误信息
猜你喜欢

CreateAnonymousThreadX给匿名线程传递参数

2022 ICLR | CONTRASTIVE LEARNING OF IMAGE- AND STRUCTURE BASED REPRESENTATIONS IN DRUG DISCOVERY
![C#获取WebService接口的所有可调用方法[WebMethod]](/img/44/4429b78c5b8341ed9a4a08d75a683e.png)
C#获取WebService接口的所有可调用方法[WebMethod]

Small program imitating Taobao Jiugong grid sliding effect

Uni app dynamic add style dynamic bind background image invalid

120. triangle minimum path sum - Dynamic Planning
![[chapter 67 of the flutter problem series] the solution to the problem that the get plug-in cannot jump to the route twice in the dialog pop-up window in flutter](/img/59/0d95619ee3bba1f8992d90267d45c2.png)
[chapter 67 of the flutter problem series] the solution to the problem that the get plug-in cannot jump to the route twice in the dialog pop-up window in flutter

Introduction to applet Basics (dark horse learning notes)

120. 三角形最小路径和-动态规划

用navicat将mysql数据转化为postgresql
随机推荐
力扣刷题338.比特位计数
Go scheduled task cron package usage
Crawler scrapy framework learning 2
是“凯撒密码”呀。(*‘▽‘*)*
JS common array methods
2022 ICLR | CONTRASTIVE LEARNING OF IMAGE- AND STRUCTURE BASED REPRESENTATIONS IN DRUG DISCOVERY
Tita绩效宝:远程一对一面谈的问题
电磁兼容常用名词术语
Hugo 博客搭建教程
2022 ICLR | CONTRASTIVE LEARNING OF IMAGE- AND STRUCTURE BASED REPRESENTATIONS IN DRUG DISCOVERY
JS, how to add grid style
Catalan number
Serial communication learning
The data obtained from mongodb query data command is null
出现Could not find com.scwang.smart:refresh-layout-kernel:2.0.3.Required by: project :app 无法加载第三方包情况
前几年的互联网人vs现在的互联网人
NodeJS 解析 GET 请求 url 字符串
Collection of some compatibility issues
Consolidated figures
Solve the problem of running server nodemon reporting errors