I am trying to get the configuration ID for my VMs using Get-WmiObject command in Windows PowerShell. I am able to do so when I run it against other servers with the following command but it will not work for the local machine.
Get-WmiObject -ComputerName $VM_SERVER -Namespace root\virtualization\v2 -class Msvm_virtualSystemsettingData | select elementname, ConfigurationID
When I run the command against the local server with or without the -ComputerName tag the command returns nothing.