Skip to content

Instantly share code, notes, and snippets.

@CoditCompany
Created November 16, 2017 17:34
Show Gist options
  • Select an option

  • Save CoditCompany/10376b0ea2bcb201e7588055f11d34dd to your computer and use it in GitHub Desktop.

Select an option

Save CoditCompany/10376b0ea2bcb201e7588055f11d34dd to your computer and use it in GitHub Desktop.
Import-Module FailoverClusters
$ClusterNetworkName = 'Cluster Network 1'
$IPResourceName = 'IP Address 10.2.1.10'
$ILBIP = '10.2.1.10'
[int]$ProbePort = 60005
Get-ClusterResource $IPResourceName | Set-ClusterParameter -Multiple @{"Address"="$ILBIP";"ProbePort"=$ProbePort;"SubnetMask"="255.255.255.255";"Network"="$ClusterNetworkName";"EnableDhcp"=0}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment