通过Powershell获取Windows Server主机中DNS服务器的IP

发布于 2025-01-12 16:06:09 字数 510 浏览 4 评论 0原文

我正在查看 powershell 参考满足以下需求:

我有一台托管 DNS 服务器的远程 Windows Server 计算机。我正在尝试执行远程 power-shell 命令以使用 此参考。但是 - 当在大多数调用中指定 ComputerName 参数时,提供远程 Windows 服务器计算机 IP 似乎是不够的 - 似乎我需要提供 DNS 服务器 IP 本身。

是否有一个调用/一组调用可以帮助我获取此数据?

I was looking at the powershell reference for the following need:

I have a remote Windows Server machine hosting a DNS Server. I'm trying to execute remote power-shell commands to obtain the DNS server information using this reference. However - when Specifying the ComputerName parameter in most of the calls, it seems that providing the remote windows server machine IP is insufficient - it seems like I need to provide the DNS Server IP itself.

Is there a call / set of calls which can help me obtain this data?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文