【发布时间】: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