Hi,
You can use the following PowerShell script:
$VMs = Get-VM
Get-VMNetworkAdapter -VMName $VMs.Name | Select-Object VMName, SwitchName
Example result:
----------
(If the reply was helpful please don't forget to accept as answer, thank you)
Best regards,
Leon