22description : Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell.
33external help file : ClusterAwareUpdating.dll-Help.xml
44Module Name : ClusterAwareUpdating
5- ms.date : 12/20/2016
5+ ms.date : 09/27/2022
66online version : https://learn.microsoft.com/powershell/module/clusterawareupdating/add-cauclusterrole?view=windowsserver2022-ps&wt.mc_id=ps-gethelp
77schema : 2.0.0
88title : Add-CauClusterRole
@@ -42,13 +42,13 @@ Add-CauClusterRole [-VirtualComputerObjectName <String>] [-GroupName <String>]
4242```
4343
4444## DESCRIPTION
45- The ** Add-CauClusterRole** cmdlet adds the Cluster-Aware Updating (CAU) clustered role that provides
45+ The ` Add-CauClusterRole ` cmdlet adds the Cluster-Aware Updating (CAU) clustered role that provides
4646the self-updating functionality to the specified cluster. When the CAU clustered role has been added
4747to a cluster, the failover cluster can update itself on the schedule that is specified by the user,
4848without requiring an external computer to coordinate the cluster updating process.
4949
5050To run this cmdlet, Windows PowerShell® remoting must be enabled on each node. To do this, run the
51- ** Enable-PSRemoting** cmdlet. In addition, ensure that the Windows Remote Management - Compatibility
51+ ` Enable-PSRemoting ` cmdlet. In addition, ensure that the Windows Remote Management - Compatibility
5252Mode (HTTP-In) firewall exception is enabled on each node.
5353
5454## EXAMPLES
@@ -63,8 +63,8 @@ The CAU clustered role is configured to perform Updating Runs on Tuesdays and Sa
6363second and fourth weeks of each month. In an Updating Run, the maximum number of failed nodes is two
6464and the maximum number of retries per node is two. A script called verifyupdatesinstalled.ps1 runs
6565on each node after it has been fully updated. Before an Updating Run can begin, all the nodes of
66- that cluster must be running. If it is not already enabled, the Remote Shutdown Windows Firewall
67- rule group will be enabled on each cluster node. Because the command uses the * Force* parameter, the
66+ that cluster must be running. If it isn't already enabled, the Remote Shutdown Windows Firewall
67+ rule group will be enabled on each cluster node. Because the command uses the ** Force* * parameter, the
6868cmdlet runs without displaying confirmation prompts.
6969
7070### Example 2: Add a CAU clustered role on the specified cluster at a specific interval
@@ -76,9 +76,9 @@ This command adds the CAU clustered role, using a default name, on the cluster c
7676The CAU clustered role is configured to perform Updating Runs on Tuesdays and Saturdays at an
7777interval of every three weeks. In an Updating Run, the maximum number of failed nodes is two and the
7878maximum number of retries per node is two. Updating Runs can begin even when the nodes of the
79- cluster are not all running (if the cluster itself has quorum and is running). If it is not already
79+ cluster aren't all running (if the cluster itself has quorum and is running). If it isn't already
8080enabled, the Remote Shutdown Windows Firewall rule group will be enabled on each cluster node.
81- Because the command uses the * Force* parameter, the cmdlet runs without displaying confirmation
81+ Because the command uses the ** Force* * parameter, the cmdlet runs without displaying confirmation
8282prompts.
8383
8484### Example 3: Add a CAU clustered role on the specified cluster using plug-ins
@@ -88,12 +88,12 @@ PS C:\> Add-CauClusterRole -ClusterName "CONTOSO-FC1" -CauPluginName Microsoft.W
8888
8989This command adds the CAU clustered role, using a default name, on the cluster called CONTOSO-FC1.
9090The CAU clustered role is configured to perform updates using the ** Microsoft.WindowsUpdatePlugin**
91- plug-in with the optional * IncludeRecommendedUpdates* parameter set to True, and using the
91+ plug-in with the optional ** IncludeRecommendedUpdates* * parameter set to True, and using the
9292** Microsoft.HotfixPlugin plug-in** using the hotfix root folder \\\\ CauHotfixSrv\shareName and the
9393default hotfix configuration file. If a failure occurs during the installation of updates on a node
9494by ** Microsoft.WindowsUpdatePlugin** , updates are applied by ** Microsoft.HotfixPlugin plug-in** . If
95- it is not already enabled, the Remote Shutdown Windows Firewall rule group is enabled on each
96- cluster node. Because the command uses the * Force* parameter, the cmdlet runs without displaying
95+ it isn't already enabled, the Remote Shutdown Windows Firewall rule group is enabled on each
96+ cluster node. Because the command uses the ** Force* * parameter, the cmdlet runs without displaying
9797confirmation prompts.
9898
9999## PARAMETERS
@@ -105,7 +105,7 @@ For instance, to specify a Domain argument for one plug-in:
105105You can specify multiple pairs in a set separated with semicolons.
106106For instance:
107107- ` @{name1=value1;name2=value2;name3=value3} ` These name=value pairs must be meaningful to the
108- * CauPluginName* parameter that you specify. If you specify arguments for more than one plug-in,
108+ ** CauPluginName* * parameter that you specify. If you specify arguments for more than one plug-in,
109109 provide the sets of name=value pairs in the order that you pass values in ** CauPluginName** ,
110110 separated by commas. For instance:
111111- ` @{name1=value1;name2=value2;name3=value3},@{name4=value4;name5=value5} `
@@ -178,7 +178,7 @@ Accept wildcard characters: False
178178
179179### -ClusterName
180180Specifies the name of the cluster on which to create the CAU clustered role. This parameter is only
181- required when this cmdlet is not run on a failover cluster node, or this cmdlet is used to reference
181+ required when this cmdlet isn't run on a failover cluster node, or this cmdlet is used to reference
182182a failover cluster different from where the cmdlet is run.
183183
184184` ` ` yaml
@@ -195,9 +195,9 @@ Accept wildcard characters: False
195195
196196### -ConfigurationName
197197Specifies the Windows PowerShell session configuration that defines the session in which scripts,
198- specified by the *PreUpdateScript* and *PostUpdateScript* parameters, and cmdlets are run, and can
198+ specified by the ** PreUpdateScript** and ** PostUpdateScript* * parameters, and cmdlets are run, and can
199199limit the cmdlets that are available to be run. If either a pre-update or post-update script is
200- specified but a configuration name is not specified, then the default session configuration that is
200+ specified but a configuration name isn't specified, then the default session configuration that is
201201built into Windows PowerShell® is used.
202202
203203` ` ` yaml
@@ -271,13 +271,13 @@ Accept wildcard characters: False
271271
272272### -EnableFirewallRules
273273Indicates that the cmdlet enables the Remote Shutdown Windows Firewall rule group on each cluster
274- node, if it is not already enabled. If the *EnableFirewallRules* parameter is specified, CAU will
274+ node, if it isn't already enabled. If the ** EnableFirewallRules* * parameter is specified, CAU will
275275also automatically re-enable the Remote Shutdown rule group each time the CAU clustered role
276276performs an Updating Run, in case the rules are disabled manually in the intervening time. Enabling
277277this rule group permits inbound communication to each cluster node during each Updating Run that
278278allows CAU to shut down and restart the node remotely (if the installation of an update requires a
279- restart). If Windows Firewall is in use on the cluster nodes and the rule group is not enabled, the
280- Updating Run will fail. The Remote Shutdown Windows Firewall rule group is not enabled when it will
279+ restart). If Windows Firewall is in use on the cluster nodes and the rule group isn't enabled, the
280+ Updating Run will fail. The Remote Shutdown Windows Firewall rule group isn't enabled when it will
281281conflict with Group Policy settings that are configured for Windows Firewall.
282282
283283` ` ` yaml
@@ -441,7 +441,7 @@ begins, and before the node is put into Maintenance mode. The file name extensio
441441the total length of the path plus the file name must be no longer than 260 characters. As a best
442442practice, the script should be located on a disk in cluster storage, or at a highly available
443443network share, to ensure that the script is always accessible to all the cluster nodes. If a
444- pre-update script fails, the node is not updated.
444+ pre-update script fails, the node isn't updated.
445445
446446` ` ` yaml
447447Type : String
@@ -456,7 +456,7 @@ Accept wildcard characters: False
456456` ` `
457457
458458### -RebootTimeoutMinutes
459- Specifies the time in minutes that CAU allows for the restarting of a node. If the restart does not
459+ Specifies the time in minutes that CAU allows for the restarting of a node. If the restart doesn't
460460complete within this time, then the Updating Run on that node will be marked as failed.
461461
462462` ` ` yaml
@@ -490,11 +490,11 @@ Accept wildcard characters: False
490490### -RunPluginsSerially
491491Indicates that the cmdlet CAU scans each cluster node for applicable updates and stages the updates
492492for each plug-in in the plug-in order when multiple plug-ins are used during an Updating Run when
493- you use the *CauPluginName* parameter. By default, CAU scans and stages the applicable updates for
493+ you use the ** CauPluginName* * parameter. By default, CAU scans and stages the applicable updates for
494494all plug-ins in parallel. Regardless of the configuration of this parameter, CAU installs the
495495applicable updates for each plug-in sequentially.
496496
497- The parameter is valid only when multiple plug-ins are specified in the *CauPluginName* parameter.
497+ The parameter is valid only when multiple plug-ins are specified in the ** CauPluginName* * parameter.
498498If a single plug-in is specified, a warning appears.
499499
500500` ` ` yaml
@@ -515,7 +515,7 @@ updates on the node, if the installation of an update by a plug-in requires a re
515515during an updating run, all plug-ins complete the installation of updates on a cluster node before
516516the node restarts one time.
517517
518- The parameter is valid only when multiple plug-ins are specified in the *CauPluginName* parameter.
518+ The parameter is valid only when multiple plug-ins are specified in the ** CauPluginName* * parameter.
519519If a single plug-in is specified, a warning appears.
520520
521521` ` ` yaml
@@ -546,7 +546,7 @@ Accept wildcard characters: False
546546` ` `
547547
548548### -StopAfter
549- Specifies the time in minutes after which the updating run is canceled if it has not completed. The
549+ Specifies the time in minutes after which the updating run is canceled if it hasn't completed. The
550550time span can be expressed in the standard ways available in Windows PowerShell, for instance,
551551` 01:30:00` represents one hour and thirty minutes. By default, the updating run is allowed an
552552unlimited amount of time to complete.
@@ -568,9 +568,8 @@ Accept wildcard characters: False
568568
569569# ## -StopOnPluginFailure
570570Indicates that this cmdlet coordinates subsequent updates on the node when plug-ins are stopped.
571- When multiple plug-ins are used during an updating run, by default, a failure by one plug-in does
572- not affect the application of updates on a node by other plug-ins. This parameter is valid only when
573- multiple plug-ins are specified in the *CauPluginName* parameter. If a single plug-in is specified,
571+ When multiple plug-ins are used during an updating run, by default, a failure by one plug-in doesn't affect the application of updates on a node by other plug-ins. This parameter is valid only when
572+ multiple plug-ins are specified in the **CauPluginName** parameter. If a single plug-in is specified,
574573a warning appears.
575574
576575` ` ` yaml
@@ -586,12 +585,12 @@ Accept wildcard characters: False
586585` ` `
587586
588587# ## -SuspendClusterNodeTimeoutMinutes
589- Specifies the maximum amount of time CAU should wait for the ** Suspend-ClusterNode** cmdlet to
588+ Specifies the maximum amount of time CAU should wait for the ` Suspend-ClusterNode` cmdlet to
590589succeed if the underlying clustered space is in degraded condition.
591590
592- If ** Suspend-ClusterNode** fails with ERROR_CLUSTER_SPACE_DEGRADED error, CAU will keep retrying for
593- *SuspendClusterNodeTimeoutMinutes* or suspend the call if the command succeeds. The retries for this
594- error don not count towards the *MaxRetriesPerNode* parameter set by the user.
591+ If ` Suspend-ClusterNode` fails with ERROR_CLUSTER_SPACE_DEGRADED error, CAU will keep retrying for
592+ ** SuspendClusterNodeTimeoutMinutes* * or suspend the call if the command succeeds. The retries for this
593+ error don't count towards the ** MaxRetriesPerNode* * parameter set by the user.
595594
596595The timeout value is per cluster node. So CAU could potentially spend the amount of time specified
597596for this value for every node in the cluster in the worst case.
@@ -630,7 +629,7 @@ Accept wildcard characters: False
630629
631630# ## -WarnAfter
632631Specifies the time in minutes after which a warning will be logged if the Updating Run (including
633- any pre-update and post-update scripts) has not completed. By default, no warning will be logged,
632+ any pre-update and post-update scripts) hasn't completed. By default, no warning will be logged,
634633regardless of the time taken by the Updating Run.
635634
636635` ` ` yaml
@@ -663,7 +662,7 @@ Accept wildcard characters: False
663662
664663# ## -WhatIf
665664Shows what would happen if the cmdlet runs.
666- The cmdlet is not run.
665+ The cmdlet isn't run.
667666
668667` ` ` yaml
669668Type: SwitchParameter
0 commit comments