Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

Setting ESXi FQDN as the hostname..

$
0
0

Hi,

 

I'm trying to set the FQDN as the hostname for ESXi hosts in vCenter.

 

I have the following command :

 

$esxcli = Get-esxcli -vmhost 192.168.2.21

$getname = $esxcli.system.hostname.get() | select Fullyqualifieddomainname

 

Now when I check the variable it has a value that I cannot set as the hostname which is :

 

write-host $getname

@{FullyQualifiedDomainName=esxi1.v.lab}

 

Is there an alternate way to this.

 

Thank You


Viewing all articles
Browse latest Browse all 179681

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>