1

我正在使用Windows Server 2008 x64機器和Powershell 3.0。在Windows Server 2008中:Powershell無法導入模塊ActiveDirectory

找到類似問題後,我發現我必須安裝補丁KB969166,KB968934,KB967574,KB968930。

這樣做,因此「服務」中出現「Web服務活動目錄」。

但是,「ActiveDirectory模塊的Windows Powershell」在「Active Directory工具」和「NIS服務器」旁邊的「Windows功能」中仍然不可見。

我可以做些什麼來使「Windows PowerShell中的ActiveDirectory模塊」條目出現在「Windows功能」中?

是否有必要讓它在那裏檢查,因爲我在這裏發現http://blogs.msdn.com/b/rkramesh/archive/2012/01/17/how-to-add-active-directory-module-in-powershell-in-windows-7.aspx

還是有不同的路要走,所以我可以在Powershell 3.0中導入的模塊列表中包含「ActiveDirectory」模塊?

注意:我的最終目標是使命令「import-module ActiveDirectory」在PowerShell中工作,不會導致文件未找到錯誤。

回答

2

PowerShell AD模塊僅適用於Windows Server 2008 R2和Windows 7(作爲RSAT的一部分),不適用於Windows Server 2008.請參閱Technet論壇上的this thread

+0

在Windows 8.1中也可用http://superuser.com/questions/867467/how-to-add-active-directory-module-in-powershell-in-windows-8 – Kiquenet 2015-01-22 07:13:30