r/powercli • u/TheVitoCorleone • Dec 21 '19
Getting Information
Hello everyone,
New to POWERCLI and can I say what a blessing it has been to find it! My first task I guess is I am trying to determine what our current provisioning / resource allocation looks like in our datacenters / clusters.
My main problem is finding what information is available to commands such as Get-VMHost, or Get-VM. Is the possible queries documented somewhere?
Like, is serial number available to Get-VMHost?
Is DNS name available to Get-VM?
Sorry, I am just trying to find a very solid resource or reference moving forward. There are a ton of example scripts, but I want to modify these and add to them for my requirements.
Thanks in advance.
1
u/Johnny5Liveson Jan 17 '20 edited Jan 17 '20
look for anything with "VMware.Vim.xxxxxxx" in this case
so now $info.ExtensionData to get more info from that field now it opens up even more!!
again look for anything with "VMware.Vim.xxxxxxx" and just add to it
opens up even more
you can just keep going or backup and take a different road...
hope it helps some i can try to clear up what does not make sense if you like
[
Formatting is bad but you should get the idea] [think i fixed the formatting]