打开 Windows Powershell Modules 报错

http://blog.csdn.net/evils798/article/details/7196549

开始在 PowerShell 打入: cd iis: 一直报错, 后来放狗搜了半天,也没结果,偶然发现还有一个:  Windows Powershell Modules ,打开报一个错:

警告: 无法加载文件
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PSDiagnostics\PSDiagnostics.psm1,因为在此系统中禁止执行脚本。有关详
细信息,请参阅 "get-help about_signing"。
警告: 无法加载文件
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\WebAdministration\WebAdministrationAliases.ps1,因为在此系统中禁止执
行脚本。有关详细信息,请参阅 "get-help about_signing"。

才搜到上面的链接。

执行:

set-executionpolicy remotesigned

就可以了。

1. PowerShell 的资料太少了。 多读系统的帮助,任务栏的windowspowershell 点右键,才能打开帮助。 具体文件在:

  C:\Windows\winsxs\amd64_microsoft-windows-p..l-helpchm.resources_31bf3856ad364e35_6.1.7600.16385_zh-cn_66a32fb57e79c943

2. windows powershell modules  是在  windows powershell 后面添加了两个参数:

%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -NoExit -ImportSystemModules

     ImportSystemModules这个功能还可以在 taskBar 的 PowerShell 上点右键,选择导入系统模块。  http://technet.microsoft.com/zh-cn/library/hh847866.aspx

alarm   作者:NewSea     出处:http://newsea.cnblogs.com/    QQ,MSN:iamnewsea@hotmail.com

  如无特别标记说明,均为NewSea原创,版权私有,翻载必纠。欢迎交流,转载,但要在页面明显位置给出原文连接。谢谢。
原文地址:https://www.cnblogs.com/newsea/p/3094036.html