Good day.
Need help
Guest.HostName on Win, RH, OEL guest OS return full hostname on SuSe and CentOS return only short hostname.
But i need full, how fix it?
Does this return the FQDN correctly?
It assumes that the VMware Tools are installed and running.
Get-VM | where{$_.PowerState -eq 'PoweredOn'} |
Select Name,
@{n='gUEST os';e={$_.ExtensionData.Guest.gUESTfULLnAME}},
@{N='FQDN';E={"$($_.ExtensionData.Guest.Ipstack[0].DnsConfig.HostName).$($_.ExtensionData.Guest.Ipstack[0].DnsConfig.DomainName)"}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Does this return the FQDN correctly?
It assumes that the VMware Tools are installed and running.
Get-VM | where{$_.PowerState -eq 'PoweredOn'} |
Select Name,
@{n='gUEST os';e={$_.ExtensionData.Guest.gUESTfULLnAME}},
@{N='FQDN';E={"$($_.ExtensionData.Guest.Ipstack[0].DnsConfig.HostName).$($_.ExtensionData.Guest.Ipstack[0].DnsConfig.DomainName)"}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thx.
All work correct.
I stop my try search resolve problem on $_.ExtensionData.Guest.Ipstack