打開 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

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM