Hi Team
I want to retrieve the advance settings "Syslog.global.logHost" of each ESXi Host in vCenter and export it to a CSV. As there are more than 100 host, can somebody help with the script to extract the information from the vCenter.
As your post needs moving to the PowerCLI area, I have reported it to the moderators.
You could do something like this
Get-VMHost |
Get-AdvancedSetting -Name 'Syslog.global.logHost' |
Select @{N='VMHost';E={$_.Entity.Name}},Name,Value |
Export-Csv -Path .\report.csv -NoTypeInformation -UseCulture
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference