http://blog.csdn.net/evils798/article/details/7196549
At first, I entered CD IIS in PowerShell and reported errors all the time. Later, I searched the dog for a long time, but there was no result. I accidentally found another one: When Windows PowerShell modules is opened, an error is reported:
Warning: the file
C: \ windows \ system32 \ windowspowershell \ v1.0 \ modules \ psdiagnostics \ psdiagnostics.psm1 cannot be loaded because script execution is prohibited on this system. See “get help about” for details_signing”。
warning: the file
C: \ windows \ system32 \ windowspowershell \ v1.0 \ modules \ webadministration \ webadministrationaliases.ps1 cannot be loaded because
script execution is prohibited in this system. For more information, see “get help about”_signing”。
To find the link above
Execution:
set-executionpolicy remotesigned
That’s it
1. There are too few PowerShell data. Read the help of the system more. Right click the windows power shell in the taskbar to open the help. The specific documents are as follows:
C:\Windows\winsxs\amd64_microsoft-windows-p..l-helpchm.resources_31bf3856ad364e35_6.1.7600.16385_zh-cn_66a32fb57e79c943
2. windows powershell modules Yes Two parameters are added after windows PowerShell:
%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -NoExit -ImportSystemModules
The function of importsystemmodules can also right-click PowerShell in taskbar and select import system modules. http://technet.microsoft.com/zh-cn/library/hh847866.aspx
Similar Posts:
- [Solved] Failed to load the file C:\Users\Administrator\AppData\Roaming\npm\yarn.ps1, because script execution is prohibited in this system.
- [Solved] TSC Compile TS File Error: TSC: the file cannot be loaded because running scripts is prohibited on this system;
- [Solved] yarn: Unable to load the File C:\Users\Administrator\AppData\Roaming\npm\yarn.ps1, Because running scripts is prohibited on this system.
- [Solved] Vs2022 installat error: unable to install microsoft.netcore.hostpath
- Can’t load AMD 64-bit .dll on a IA 32-bit platform [How to Solve]
- [Solved] Vue : The file D:\Program Files\nodejs\node_global\vue.ps1 could not be loaded, because running scripts is disabled on this system.
- [Solved] NPM run dev error [npm ERR! code ELIFECYCLE]
- [Solved] Tomcat: no permission for starting Tomcat service
- Error processing tar file(exit status 1): archive/tar: invalid tar header
- [Solved] Msbuild Error: error msb3428: Cannot Load the C + + Group “vcbuild. Exe”