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