Challenge : To have a clean inventory of host to switch mapping, we had to gather the lldp information of all the ESXi hosts. It would be easier if the hosts are a few/ in a single digit. We had to find an easy and automated script which can generate the output. Pre-requisites : 1) Requires power-cli to be installed. 2) Install-Module -Name VMware.PowerCLI -Scope CurrentUser Powershell script : 1) To ignore ssl certificate error Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$true 2) Script to connect to vCenter and provide valid credentials, and the script will provide the output in a csv format to the provided location, which can be customized. # Array of vCenter Server names or IP addresses $vCenterServers = @("192.168.1.62") # Add all your vCenter Servers here # Output file path $OutputPath = "C:\Users\asyed\Documents\ESXi_LLDP_Report1.csv" # Change this to your desired output path # --- Script Start --- Write-Host "Con...