I want to query for several config settings in advanced configuration on all ESXi hosts in my vcenter, for example I ran the following:
Get-VMHost|Sort-Object Name|Get-VMHostAdvancedConfiguration -Name UserVars.ESXiShellInteractiveTimeOut
which gave me the following output
Name | Value |
---- | ----- |
UserVars.ESXiShellInteracti... 300
UserVars.ESXiShellInteracti... 300
UserVars.ESXiShellInteracti... 300
UserVars.ESXiShellInteracti... 300
UserVars.ESXiShellInteracti... 300
UserVars.ESXiShellInteracti... 300
UserVars.ESXiShellInteracti... 300
the problem is it's missing the host name, anyway I can modify the cmdlets to see the host name an additional column?
thank you