Disable/Enable/View ATSHB in ESXi


  In this post we are going to see how to enable/disable ATSHB feature in ESXi using powershell.
I am sharing two commands in single script you can modify accordingly. First line is to view current settings and second is to modify values.




Connect-VIServer vcsa65
$vmhosts = @(Get-VMHost)
$Results = @()
$Results = foreach ($vmhost in $vmhosts)
 {

#view ATSHB value
Get-AdvancedSetting -Entity $vmhost -Name "VMFS3.UseATSForHBOnVMFS5" | select Name,Value,@{N='host';E={$vmhost}}
#enable/disable ATSHB
# 0 to disable and 1 to enable
 Get-AdvancedSetting -Entity $vmhost -Name "VMFS3.UseATSForHBOnVMFS5" | Set-AdvancedSetting -Value 0 -Confirm:$false
  }
 $Results | export-csv f:\script_output\atshb.csv

No comments:

Post a Comment