CmdID / PowerShell / Cmdlets / Set
Set-ClusterAffinityRule
Enable or disable an affinity rule, and update the rule type. Windows Server PowerShell reference
From the Windows Server PowerShell reference 8 parameters Its page in the reference
Parameters
-AsJobRuns the cmdlet as a background job.-CimSession, -SessionRuns the cmdlet in a remote session or on a remote computer.-EnabledEnables or disables the affinity rule.-InputObjectSpecifies the affinity rule object to change.-NameThe name of the affinity rule to change.-PassThruReturns the original object passed to the command.-RuleTypeThe affinity type to set the rule to.-ThrottleLimitSpecifies the maximum number of concurrent operations that can be established to run the cmdlet.