PowerShell Logo Small

Set-ClusterParameter



This is the built-in help made by Microsoft for the command 'Set-ClusterParameter', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Controls specific properties of an object in a failover cluster, such as a resource, a group, or a network.

SYNTAX


Set-ClusterParameter [[-Name] <String>] [[-Value] <PSObject>] [-Cluster <String>] [-Create] [-Delete] [-InputObject <PSObject>] [-Multiple <hashtable>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-ClusterParameter cmdlet controls specific properties of an object in a failover cluster, such as a resource, a group, or a network.

-- For a disk resource, you can set the disk signature or GUID of a disk, and turn maintenance on or off for that disk.

-- For a Network Name resource, you can set DNS-related information about the resource.

-- For an IP address resource, you can set DHCP-related information about the IP Address resource.

-- For resources used by virtual machines, you can set details about the settings for the virtual machines.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?LinkId=321066
Get-ClusterParameter

REMARKS

<

Examples


Example 1

PS C:\>Get-ClusterResource –Name cluster1FS | Set-ClusterParameter –Name HostRecordTTL –Value 300



This example configures the clustered resource called cluster1FS on the local cluster, by setting the value of HostRecordTTL to 300.




Example 2

PS C:\>Get-ClusterResource –Name "Cluster IP Address" | Set-ClusterParameter -Multiple @{"Address"="172.24.22.168";"Network"="Cluster Network 2";"EnableDhcp"=1}



This example uses the Multiple parameter to configure the clustered resource called Cluster IP Address, by setting the Address, Network, and EnableDhcp parameters
simultaneously.




Example 3

PS C:\>$res = Get-ClusterResource –Name "IP Address"



PS C:\>$param1 = New-Object –ComObject Microsoft.FailoverClusters.PowerShell.ClusterParameter –Property $res,Address,10.55.88.46



PS C:\>$param2 = New-Object –ComObject Microsoft.FailoverClusters.PowerShell.ClusterParameter –Property $res,SubnetMask,255.0.0.0



PS C:\>$params = $param1,$param2



PS C:\>$params | Set-ClusterParameter



This example configures the clustered resource called IP Address to use a new static IP. Because the new address and subnet mask are required, both parameters must be passed
to this cmdlet together.