I want to fetch following Virtual Machine related information through WMI:
Network Adapter:
MACaddress
IPaddress
SwitchName
Name
Same information I can fetch through powershell:
Get-VM -Id '{VM-ID}' | Get-VMNetworkAdapter | Select IPAddresses, SwitchName, MacAddress, Name
But I want to achieve same through WMI queries.
Please suggest me best approach