Hey guys How do I get the script below to just be restricted to a specific cluster or have the script include the name of the cluster the vm's are in as well?
Thanks,
Get-VM | | Get-View | Select Name, `
@{N="CpuHotAddEnabled";E={$_.Config.CpuHotAddEnabled}}, `
@{N="CpuHotRemoveEnabled";E={$_.Config.CpuHotRemoveEnabled}}, `
@{N="MemoryHotAddEnabled";E={$_.Config.MemoryHotAddEnabled}}
Something like this
Get-Cluster -Name 'MyCluster' |
Get-VM | | Get-View | Select Name,
@{N="CpuHotAddEnabled";E={$_.Config.CpuHotAddEnabled}},
@{N="CpuHotRemoveEnabled";E={$_.Config.CpuHotRemoveEnabled}},
@{N="MemoryHotAddEnabled";E={$_.Config.MemoryHotAddEnabled}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Something like this
Get-Cluster -Name 'MyCluster' |
Get-VM | | Get-View | Select Name,
@{N="CpuHotAddEnabled";E={$_.Config.CpuHotAddEnabled}},
@{N="CpuHotRemoveEnabled";E={$_.Config.CpuHotRemoveEnabled}},
@{N="MemoryHotAddEnabled";E={$_.Config.MemoryHotAddEnabled}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Strange I was doing something like that. Need my glasses checked. Thanks Luc that worked.