Suryakj7
Contributor
Contributor

Powershell script to get advance settings of ESXI

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.

 

 

0 Kudos
2 Replies
scott28tt
VMware Employee
VMware Employee

As your post needs moving to the PowerCLI area, I have reported it to the moderators.

 


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos
LucD
Leadership
Leadership

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

0 Kudos