Uncheck NUMA Settings on a specified Hyper-V host

 <# Hi Guys Here's a Script which i created to Uncheck Numa Settings on a Hyper-V Host #>
1
2
3
4
5
6
7
8

 

$cn = 'HV1' <# Here HV1 specifies the Hyper-V Host on which the Numa Setting Needs to be disabled#>
$NumaSpanningEnabled = $false

$vmhost = Get-WmiObject -Class Msvm_VirtualSystemManagementServiceSettingData -Namespace rootvirtualization -ComputerName $cn
$vmhost.NumaSpanningEnabled=$NumaSpanningEnabled

$vmms = Get-WmiObject -Class Msvm_VirtualSystemManagementService -Namespace rootvirtualization -ComputerName $cn
$vmms.ModifyServiceSettings($vmhost.psbase.GetText(1))

Share this post

Post Comment