0

对于 PowerShell 2.0

我的意思是使用 Windows PowerShell 管理 Active Directory。我有一个应用程序服务器,我在其中安装了带有 ActiveDirectory PowerShell CmdLets 的 RSAT。例如,当我为 AD cmdlet 运行命令时;Get-ADOrganizationalUnit 它给了我一条错误消息。“找不到运行 Active Directory Web 服务的默认服务器。”

经过研究,我发现了2篇文章:

http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=2852 - 安装 AD 管理网关服务。

http://blogs.technet.com/b/heyscriptingguy/archive/2011/08/29/use-active-directory-cmdlets-with-powershell-to-find-users.aspx

问题:

由于所有域控制器都在 Windows Server 2003 上运行,是否真的需要安装 AD 管理网关服务?

还有其他 EASY :) 像 AD CmdLets 这样查询 AD 的方法吗?我知道 Quest 是另一条路线,但我不能使用它,因为我被禁止安装任何 3rd Party CMDLETS。

提前致谢,

拉吉夫

4

2 回答 2

0

由于所有域控制器都在 Windows Server 2003 上运行,是否真的需要安装 AD 管理网关服务?

是的。

还有其他 EASY :) 像 AD CmdLets 这样查询 AD 的方法吗?我知道 Quest 是另一条路线,但我不能使用它,因为我被禁止安装任何 3rd Party CMDLETS。

最简单的方法是 Quest 模块,但如果您无法安装它,我建议您使用 .net 类

system.directoryservices.accountmanagement

于 2013-03-07T09:39:46.213 回答
0

也许可以使用 ADSI 接口?

查看以下文章: http ://social.technet.microsoft.com/wiki/contents/articles/4231.working-with-active-directory-using-powershell-adsi-adapter.aspx

/弗雷德里克

于 2013-03-07T12:17:19.343 回答