【问题标题】:What ports/services needs to be opened for PowerShell Active Directory to function?PowerShell Active Directory 需要打开哪些端口/服务才能运行?
【发布时间】:2020-04-17 14:38:24
【问题描述】:

到目前为止,我已经尝试打开端口 9389 并且 ADWS 正在远程服务器上运行......但没有运气......

命令:

$credential = Get-Credential # Feed it the Foreign Dommain\Username + Password
Get-ADUser 'someUser' -Server some.remote.server.com -Credential $credential

这是错误:

Get-ADUser:无法联系服务器。这可能是因为该服务器确实 不存在,它目前没有 Active Directory Web 服务 跑步。 在行:1 字符:1 + 获取 ADUser 'someUser' -Server some.remote.server.com -Credential $credential + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~ + CategoryInfo : ResourceUnavailable: (e313681:ADUser) [Get-ADUser], ADServerDownException + FullyQualifiedErrorId : ActiveDirectoryServer:0,Microsoft.ActiveDirectory.Management.Commands.GetADUser

我可以 ping 这台机器并远程访问它,但我无法使用 PowerShell 查询它。

我已检查 ADWS 是否在域控制器上运行...这里没有想法 - 我错过了端口还是什么?

【问题讨论】:

标签: powershell active-directory port


【解决方案1】:

真的希望您在 2.5 年后解决了这个问题。当我在寻找自己的问题时,通过谷歌来到这里。只需将信息放到此处,以供可能会访问此页面的其他人使用。

Powershell 正在使用 ADWS,并且正在使用的端口是 9389。

对我来说,最终是 Windows 防火墙阻止了这个端口。对于处于相同情况的任何人,请检查 %SystemRoot%\System32\LogFiles\Firewall\pfirewall.log 以了解您尝试连接的 AD 控制器的 IP。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-08-09
    • 2017-01-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多