【问题标题】:Obtain the DNS name of a VM from the Hyper-V host its running on using PowerShell使用 PowerShell 从其运行的 Hyper-V 主机获取虚拟机的 DNS 名称
【发布时间】:2022-12-02 03:06:20
【问题描述】:

Using PowerShell, can I obtain the DNS hostname of a virtual machine, if I only have access to the Hyper-V host running the VM?

I know I can get the IP of the VM and perform a reverse DNS lookup but I do not have access to the network/DNS servers that service this VM.

I also do not have credentials for the VMs

I feel like this information is accessible via integration services but have failed to find anything useful.

  • You can use the IP instead of the Host Name using integration services.
  • I\'m sorry I don\'t understand what you are getting at?
  • You do not need HostName, IP will work. So you do not need the reverse DNS.
  • I don\'t think you have understood the question. I need the hostname. That is the information I am trying to acquire.
  • Yes I specifically need the hostname. I am auditing hostnames of VM\'s. That\'s why I specifically asked for how to get the hostname.

标签: powershell hyper-v


【解决方案1】:
【解决方案2】:
猜你喜欢
  • 2021-12-25
  • 2014-03-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多