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