在Windows Server 2008中:Powershell无法导入模块ActiveDirectory

问题描述:

我正在使用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中工作,不会导致文件未找到错误。

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