Created
June 5, 2015 16:49
-
-
Save lamw/3271a29d49b2fb3633ba to your computer and use it in GitHub Desktop.
PowerCLI snippet to get/set VSAN.ClomRepairDelay ESXi Advanced Property
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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