編輯

共用方式為


Set-ClusterParameter

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

Syntax

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

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.

Examples

Example 1

Get-ClusterResource -Name "Cluster Disk 3" | Set-ClusterOwnerNode -Owners node1,node2

This example sets the possible owners for cluster named Cluster Disk 3 on the local cluster to the nodes named node1 and node2.

Example 2

Set-ClusterOwnerNode -Group cluster12FS -Owners node3,node2

This example sets the preferred owners for the clustered service named cluster12FS to the node named node3 followed by the node named node2 on the local cluster.

Parameters

-Cluster

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Create

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Delete

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Type:PSObject
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Multiple

Type:Hashtable
Position:0
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Type:String
Position:0
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Value

Type:PSObject
Position:1
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.FailoverClusters.PowerShell.Cluster

Microsoft.FailoverClusters.PowerShell.ClusterGroup

Microsoft.FailoverClusters.PowerShell.ClusterNetwork

Microsoft.FailoverClusters.PowerShell.ClusterNetworkInterface

Microsoft.FailoverClusters.PowerShell.ClusterNode

Microsoft.FailoverClusters.PowerShell.ClusterParameter

Microsoft.FailoverClusters.PowerShell.ClusterResource

Microsoft.FailoverClusters.PowerShell.ClusterResourceType

Microsoft.FailoverClusters.PowerShell.ClusterSharedVolume