Quantcast
Channel: Hyper-V forum
Viewing all articles
Browse latest Browse all 8743

Get-WmiObject not returning information for the local machine.

$
0
0

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. 


Viewing all articles
Browse latest Browse all 8743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>