windows powershell错误 because the execution of scripts is disabled on this system
2017-02-16 16:49
555 查看
原因:需要修改策略为unrestricted
解决方法:
1. 以管理员身份运行PowerShell。
2. 检查当前状态:输入 Get-ExecutionPolicy ,回车。 显示: Restricted 。
3. 修改状态:输入 Set-ExecutionPolicy Unrestricted 。
4. 再次输入 Get-ExecutionPolicy 检查状态应该显示 Unrestricted。
===========================================================================
windows powershell 打开方法:
1、进入cmd命令行,输入start powershell,进入powershell
2、将文件后缀改为ps1,右击编辑或者以powershell运行
解决方法:
1. 以管理员身份运行PowerShell。
2. 检查当前状态:输入 Get-ExecutionPolicy ,回车。 显示: Restricted 。
3. 修改状态:输入 Set-ExecutionPolicy Unrestricted 。
4. 再次输入 Get-ExecutionPolicy 检查状态应该显示 Unrestricted。
===========================================================================
windows powershell 打开方法:
1、进入cmd命令行,输入start powershell,进入powershell
2、将文件后缀改为ps1,右击编辑或者以powershell运行
相关文章推荐
- PowerShell: 如何解决File **.ps1 cannot be loaded because the execution of scripts is disabled on this system.
- PowerShell: 如何解决File **.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get- help about_sig" for more de
- File xxx.ps1 cannot be loaded because the execution of scripts is disabled on this system
- PS1--cannot be loaded because the execution of scripts is disabled on this system
- PowerShell: 如何解决File **.ps1 cannot be loaded because the execution of scripts is disabled on this sy
- “The execution of scripts is disabled on this system” … How to run your own PowerShell scripts
- PowerShell: 如何解决File **.ps1 cannot be loaded because the execution of scripts is disabled on this sy
- File C:\Temp\Test.ps1 cannot be loaded because the execution of scripts is disabledon this system.
- PowerShell “execution of scripts is disabled on this system.”
- scripts is disabled on this system error in PowerShell
- This compilation unit is not on the build path of java project 错误
- This error is raised because the column 'type' is reserved for storing the class in case of inheritance
- What is the maximum amount of memory any single process on Windows can address? Is this different than the maximum virtual memor
- 解决导出jar时发生错误:Resource is out of sync with the filesystem
- eclipse运行错误 Version 1.3.1_01 of the JVM is not suitable for this product.Version:1.4.1 or greater is required
- SQL Server数据库恢复错误 The media family on device ‘%ls’ is incorrectly formed. SQL Server cannot process this media family
- FCKeditor关于图片上传出现错误“ 提示没有权限 Type=Image” 以及出现"this connector is disabled Please check the"editor/filemanager/connectors/aspx/conf
- FCKeditor出现"this connector is disabled Please check the"editor/filemanager/connectors/aspx/config.aspx"错误的解决办法【转】
- mvn install Geoserver under ubuntu10.04 时遇到的错误:the API of the mojo scanner is not compatible with this plugin version. 的解决方法
- FCKeditor出现"this connector is disabled Please check the"editor/filemanager/connectors/aspx/config.aspx"错误的解决办法