Hello,
I need to make sure that the 3D acceleration is disabled on all VMs, but this script didn't work for me. I'm using PowerCLi v10
Get-View -ViewType VirtualMachine -Property Name,Config.Hardware.Device | `
ForEach-Object {
$VM = $_
$VM.Config.Hardware.Device | `
Where-Object {$_.GetType().Name -eq "VirtualMachineVideoCard"} | `
Select-Object -property @{N="VM";E={$VM.Name}},Enable3DSupport
} | Where-Object {$_.Enable3DSupport}
Works for me.
Are you sure you have a VM that has "Enable 3D Support" ticked?
Check what all VMs have with
Get-View -ViewType VirtualMachine -Property Name,Config.Hardware.Device |
ForEach-Object {
$vm = $_
$vm.Config.Hardware.Device |
Where-Object {$_ -is [VMware.Vim.VirtualMachineVideoCard]} |
Select-Object -property @{N="VM";E={$vm.Name}},Enable3DSupport
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Works for me.
Are you sure you have a VM that has "Enable 3D Support" ticked?
Check what all VMs have with
Get-View -ViewType VirtualMachine -Property Name,Config.Hardware.Device |
ForEach-Object {
$vm = $_
$vm.Config.Hardware.Device |
Where-Object {$_ -is [VMware.Vim.VirtualMachineVideoCard]} |
Select-Object -property @{N="VM";E={$vm.Name}},Enable3DSupport
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
What you are saying is reasonable, it returned nothing as non is enabled, I just wanted to make sure that nothing is enabled.
Thanks.
To be absolutely sure, create a test VM with 3D enabled :smileycool:
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Yeah, I've tried that and it did the trick.
Thanks,