DavidGriswoldeB's Posts

LucD I usually don't want to necro a year old thread. I am needing a similar script for the DRS cluster settings as well. I have searched without much luck for one that has the same level of deta... See more...
LucD I usually don't want to necro a year old thread. I am needing a similar script for the DRS cluster settings as well. I have searched without much luck for one that has the same level of details. I can open a new question if you would prefer. David Griswold PayPal
I am sure there is a resource for everything in the VM View, but I have yet to find a definitive one. If you know of one, I would appreciate a link. Thanks, David
I found how to retrieve the value of an ExtraConfig Key from this earlier thread (link below), but when I try to use it in an existing script, I have to further nest it, and the context is not co... See more...
I found how to retrieve the value of an ExtraConfig Key from this earlier thread (link below), but when I try to use it in an existing script, I have to further nest it, and the context is not correct. It does not error out, it just does not return a value. How to use Get-View instead of Get-VM for Advanced Settings of a VM Here is the snippet of code from my script, with the code that is returning NULL highlighted in bold purple. Get-VM | get-view | Select @{N="VMName";E={$_.name}}, @{N="OSHostName";E={$_.guest.HostName}}, @{N="OS";E={$_.Summary.Config.GuestFullName}}, @{N="State";E={$_.Summary.Runtime.PowerState}}, @{N="ESXiHostName";E={(get-vmhost -Id $_.Runtime.Host.ToString()).name}}, @{N="vCenter";E={$global:DefaultVIServer.Name}}, @{N="vCPU";E={$_.Summary.Config.NumCpu}}, @{N="CorePerSocket";E={($_.Config.ExtraConfig | where {$_.Key -like 'cpuid.coresPerSocket'}).Value}}, @{N="Memory";E={$_.Summary.Config.MemorySizeMB}} , @{N="Storage";E={$_.Guest.Disk.Capacity}}, @{N="VMwareTools";E={$_.Guest.ToolsVersionStatus}}, @{N="CpuReservation";E={$_.Summary.Config.CpuReservation}}, @{N="MemoryReservation";E={$_.Summary.Config.MemoryReservation}} LucD​ - since you provided the solution on the previous thread, I am hoping this might be an easy one for you. Thanks, David Griswold PayPal