LimitProcFeatures.ps1: $VirtualMachines = gwmi -namespace "root\virtualization" Msvm_ComputerSystem $VMManagementService = Get-WmiObject -Namespace "root\virtualization" -Class Msvm_VirtualSystemManagementService foreach ($vm in $VirtualMachines) { $vmName = $vm.Name $vmElementName = $vm.ElementName if(!$vm.Caption.Contains("Hosting Computer System")) { Write-Output "Limiting $vmElementName CPU features" $VMProcessors = (gwmi -namespace "root\virtualization" Msvm_ProcessorSettingData) | where { $_.InstanceID -match "Microsoft:$vmName.*" } $VMProcessors | foreach { $_.LimitProcessorFeatures = $true} $retValue = $VMProcessors | foreach {$VMManagementService.ModifyVirtualSystemResources($vm.__PATH, $_.GetText([System.Management.TextFormat]::WmiDtd20) )} if(!$retValue.ReturnValue) { Write-Output "Success"; } } }
Más info: http://support.micro...4?wa=wsignin1.0