Skip to content

Instantly share code, notes, and snippets.

@lamw
Created June 5, 2015 16:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lamw/3271a29d49b2fb3633ba to your computer and use it in GitHub Desktop.
Save lamw/3271a29d49b2fb3633ba to your computer and use it in GitHub Desktop.
PowerCLI snippet to get/set VSAN.ClomRepairDelay ESXi Advanced Property
Connect-VIServer -Server 192.168.1.60 -User administrator@vghetto.local -Password VMware1!
$cluster = "MacMini-Cluster"
$vmhosts = Get-Cluster $cluster | Get-VMHost
foreach ($vmhost in $vmhosts) {
# Retrieve VSAN.ClomRepairDelay
Get-AdvancedSetting -Entity $vmhost -Name VSAN.ClomRepairDelay | Select Name, Value
# Configuring VSAN.ClomRepairDelay
#Get-AdvancedSetting -Entity $vmhost -Name VSAN.ClomRepairDelay | Set-AdvancedSetting -Value 70 -Confirm:$false
}
Disconnect-VIServer -Confirm:$false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment