Created
October 11, 2019 10:51
-
-
Save manualbashing/04cb1da269fbe31dcf7598b329598153 to your computer and use it in GitHub Desktop.
Query an esxi host for the dns name of the vcenter server it is managed by.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $vCenterDnsName = $vmHost.ExtensionData.CLient.ServiceUrl -replace 'https?://(.+?)/sdk','$1' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment