Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 232869

Re: Cant get a VMs Powerstate

$
0
0

The VirtualMachine object that is returned by 'Get-View -ViewType VirtualMachine' doesn't have a PowerState property.

In PowerState2 you get the correct propert ($vm.Runtime.PowerState).

 

But shouldn't those 2 lines say $VMInfo instead of $VMHostInfo ?

 

$VMHostInfo.VM_Powerstate1 = $VM.powerstate

$VMHostInfo.VM_Powerstate2 = $VM.runtime.powerstate


Viewing all articles
Browse latest Browse all 232869

Trending Articles



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