@@ -16,6 +16,7 @@ Adds the CAU clustered role that provides the self-updating functionality to the
1616## SYNTAX
1717
1818### MonthlyDayOfWeek (Default)
19+
1920```
2021Add-CauClusterRole [-VirtualComputerObjectName <String>] [-GroupName <String>]
2122[-StartDate <DateTime>] [-DaysOfWeek <Weekdays>] [-WeeksOfMonth <Int32[]>]
@@ -29,6 +30,7 @@ Add-CauClusterRole [-VirtualComputerObjectName <String>] [-GroupName <String>]
2930```
3031
3132### Weekly
33+
3234```
3335Add-CauClusterRole [-VirtualComputerObjectName <String>] [-GroupName <String>]
3436[-StartDate <DateTime>] [-DaysOfWeek <Weekdays>] [-IntervalWeeks <Int32>]
@@ -42,6 +44,7 @@ Add-CauClusterRole [-VirtualComputerObjectName <String>] [-GroupName <String>]
4244```
4345
4446## DESCRIPTION
47+
4548The ** Add-CauClusterRole** cmdlet adds the Cluster-Aware Updating (CAU) clustered role that provides
4649the self-updating functionality to the specified cluster. When the CAU clustered role has been added
4750to a cluster, the failover cluster can update itself on the schedule that is specified by the user,
@@ -54,6 +57,7 @@ Mode (HTTP-In) firewall exception is enabled on each node.
5457## EXAMPLES
5558
5659### Example 1: Add a CAU clustered role on the specified cluster at a specific interval
60+
5761``` powershell
5862$parameters = @{
5963 ClusterName = 'CONTOSO-FC1'
@@ -84,6 +88,7 @@ This example uses splatting to pass parameter values from the `$parameters` vari
8488Learn more about [ Splatting] ( /powershell/module/microsoft.powershell.core/about/about_splatting ) .
8589
8690### Example 2: Add a CAU clustered role on the specified cluster at a specific interval
91+
8792``` powershell
8893$parameters = @{
8994 ClusterName = 'CONTOSO-FC1'
@@ -111,6 +116,7 @@ This example uses splatting to pass parameter values from the `$parameters` vari
111116Learn more about [ Splatting] ( /powershell/module/microsoft.powershell.core/about/about_splatting ) .
112117
113118### Example 3: Add a CAU clustered role on the specified cluster using plug-ins
119+
114120``` powershell
115121$parameters = @{
116122 ClusterName = 'CONTOSO-FC1'
@@ -141,6 +147,7 @@ Learn more about [Splatting](/powershell/module/microsoft.powershell.core/about/
141147## PARAMETERS
142148
143149### -CauPluginArguments
150+
144151Specifies an array of name=value pairs (arguments) for each updating plug-in to use.
145152For instance, to specify a Domain argument for one plug-in:
146153- ` @{Domain=Domain.local} `
@@ -199,6 +206,7 @@ Accept wildcard characters: False
199206` ` `
200207
201208### -CauPluginName
209+
202210Specifies one or more plug-ins to use when performing scans or updates. You can specify multiple
203211values separated with commas. The default is the Microsoft.WindowsUpdatePlugin plug-in. This plug-in
204212coordinates the Windows Update Agent software resident on each cluster node, the same software that
@@ -219,6 +227,7 @@ Accept wildcard characters: False
219227` ` `
220228
221229### -ClusterName
230+
222231Specifies the name of the cluster on which to create the CAU clustered role. This parameter is only
223232required when this cmdlet is not run on a failover cluster node, or this cmdlet is used to reference
224233a failover cluster different from where the cmdlet is run.
@@ -236,6 +245,7 @@ Accept wildcard characters: False
236245` ` `
237246
238247### -ConfigurationName
248+
239249Specifies the Windows PowerShell session configuration that defines the session in which scripts,
240250specified by the *PreUpdateScript* and *PostUpdateScript* parameters, and cmdlets are run, and can
241251limit the cmdlets that are available to be run. If either a pre-update or post-update script is
@@ -255,6 +265,7 @@ Accept wildcard characters: False
255265` ` `
256266
257267### -Confirm
268+
258269Prompts you for confirmation before running the cmdlet.
259270
260271` ` ` yaml
@@ -270,6 +281,7 @@ Accept wildcard characters: False
270281` ` `
271282
272283### -Credential
284+
273285Specifies the administrative credentials for the target cluster.
274286
275287` ` ` yaml
@@ -285,6 +297,7 @@ Accept wildcard characters: False
285297` ` `
286298
287299### -DaysOfWeek
300+
288301Specifies the days of the week on which the updating task will be triggered.
289302Multiple values can be specified either separated with commas or as a hexadecimal sum.
290303
@@ -312,6 +325,7 @@ Accept wildcard characters: False
312325` ` `
313326
314327### -EnableFirewallRules
328+
315329Indicates that the cmdlet enables the Remote Shutdown Windows Firewall rule group on each cluster
316330node, if it is not already enabled. If the *EnableFirewallRules* parameter is specified, CAU will
317331also automatically re-enable the Remote Shutdown rule group each time the CAU clustered role
@@ -335,6 +349,7 @@ Accept wildcard characters: False
335349` ` `
336350
337351### -FailbackMode
352+
338353Specifies the method used to bring drained workloads back to the node, at the end of updating the
339354node. Drained workloads are workloads that were previously running on the node, but were moved to
340355another node.
@@ -361,6 +376,7 @@ Accept wildcard characters: False
361376` ` `
362377
363378### -Force
379+
364380Forces the command to run without asking for user confirmation.
365381
366382` ` ` yaml
@@ -376,6 +392,7 @@ Accept wildcard characters: False
376392` ` `
377393
378394### -GroupName
395+
379396Specifies the NetBIOS name of the resource group for the CAU clustered role.
380397
381398` ` ` yaml
@@ -391,6 +408,7 @@ Accept wildcard characters: False
391408` ` `
392409
393410### -IntervalWeeks
411+
394412Specifies the interval between weeks when the task will be triggered.
395413An interval of 1 produces a weekly schedule.
396414An interval of 2 produces an every-other week schedule.
@@ -408,6 +426,7 @@ Accept wildcard characters: False
408426` ` `
409427
410428### -MaxFailedNodes
429+
411430Specifies the maximum number of nodes on which updating can fail.
412431If one more than this number of nodes fails, then the Updating Run is stopped.
413432The range is from 0 through 1, less than the number of cluster nodes.
@@ -426,6 +445,7 @@ Accept wildcard characters: False
426445` ` `
427446
428447### -MaxRetriesPerNode
448+
429449Specifies the maximum number of times that the update process attempts to run.
430450This includes any pre-update and post-update scripts.
431451The update process is retried per node.
@@ -444,6 +464,7 @@ Accept wildcard characters: False
444464` ` `
445465
446466### -NodeOrder
467+
447468Specifies an array of cluster node names in the order that they should be updated.
448469
449470` ` ` yaml
@@ -459,6 +480,7 @@ Accept wildcard characters: False
459480` ` `
460481
461482### -PostUpdateScript
483+
462484Specifies the path and file name for a Windows PowerShell script to run on each node after updating
463485finishes, and just after the node is brought out of Maintenance mode. The file name extension must
464486be .ps1 and the total length of the path plus the file name must be no longer than 260 characters.
@@ -478,6 +500,7 @@ Accept wildcard characters: False
478500` ` `
479501
480502### -PreUpdateScript
503+
481504Specifies the path and file name for a Windows PowerShell script to run on each node before updating
482505begins, and before the node is put into Maintenance mode. The file name extension must be .ps1 and
483506the total length of the path plus the file name must be no longer than 260 characters. As a best
@@ -498,6 +521,7 @@ Accept wildcard characters: False
498521` ` `
499522
500523### -RebootTimeoutMinutes
524+
501525Specifies the time in minutes that CAU allows for the restarting of a node. If the restart does not
502526complete within this time, then the Updating Run on that node will be marked as failed.
503527
@@ -514,6 +538,7 @@ Accept wildcard characters: False
514538` ` `
515539
516540### -RequireAllNodesOnline
541+
517542Indicates that the cmdlet enforces that all cluster nodes are online and reachable before updating
518543begins.
519544
@@ -530,6 +555,7 @@ Accept wildcard characters: False
530555` ` `
531556
532557### -RunPluginsSerially
558+
533559Indicates that the cmdlet CAU scans each cluster node for applicable updates and stages the updates
534560for each plug-in in the plug-in order when multiple plug-ins are used during an Updating Run when
535561you use the *CauPluginName* parameter. By default, CAU scans and stages the applicable updates for
@@ -552,6 +578,7 @@ Accept wildcard characters: False
552578` ` `
553579
554580### -SeparateReboots
581+
555582Indicates that this cmdlet shuts down CAU and restarts a cluster node after each plug-in installs
556583updates on the node, if the installation of an update by a plug-in requires a restart. By default,
557584during an updating run, all plug-ins complete the installation of updates on a cluster node before
@@ -573,6 +600,7 @@ Accept wildcard characters: False
573600` ` `
574601
575602### -StartDate
603+
576604Specifies the earliest date on which the Updating Run can be triggered.
577605
578606` ` ` yaml
@@ -588,6 +616,7 @@ Accept wildcard characters: False
588616` ` `
589617
590618### -StopAfter
619+
591620Specifies the time in minutes after which the updating run is canceled if it has not completed. The
592621time span can be expressed in the standard ways available in Windows PowerShell, for instance,
593622` 01:30:00` represents one hour and thirty minutes. By default, the updating run is allowed an
@@ -609,6 +638,7 @@ Accept wildcard characters: False
609638` ` `
610639
611640# ## -StopOnPluginFailure
641+
612642Indicates that this cmdlet coordinates subsequent updates on the node when plug-ins are stopped.
613643When multiple plug-ins are used during an updating run, by default, a failure by one plug-in does
614644not affect the application of updates on a node by other plug-ins. This parameter is valid only when
@@ -628,6 +658,7 @@ Accept wildcard characters: False
628658` ` `
629659
630660# ## -SuspendClusterNodeTimeoutMinutes
661+
631662Specifies the maximum amount of time CAU should wait for the **Suspend-ClusterNode** cmdlet to
632663succeed if the underlying clustered space is in degraded condition.
633664
@@ -651,6 +682,7 @@ Accept wildcard characters: False
651682` ` `
652683
653684# ## -VirtualComputerObjectName
685+
654686Specifies the name of a pre-staged virtual computer object that is used by the CAU clustered role.
655687For more information, see
656688[Steps to create computer objects in Active Directory](https://go.microsoft.com/fwlink/p/?LinkId=237624).
@@ -671,6 +703,7 @@ Accept wildcard characters: False
671703` ` `
672704
673705# ## -WarnAfter
706+
674707Specifies the time in minutes after which a warning will be logged if the Updating Run (including
675708any pre-update and post-update scripts) has not completed. By default, no warning will be logged,
676709regardless of the time taken by the Updating Run.
@@ -688,6 +721,7 @@ Accept wildcard characters: False
688721` ` `
689722
690723# ## -WeeksOfMonth
724+
691725Specifies the weeks of the month when the Updating Run should be run.
692726The value `5` represents the last week of the month.
693727
@@ -704,6 +738,7 @@ Accept wildcard characters: False
704738` ` `
705739
706740# ## -WhatIf
741+
707742Shows what would happen if the cmdlet runs.
708743The cmdlet is not run.
709744
@@ -720,6 +755,7 @@ Accept wildcard characters: False
720755` ` `
721756
722757# ## CommonParameters
758+
723759This cmdlet supports the common parameters : -Debug, -ErrorAction, -ErrorVariable,
724760-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
725761-WarningAction, and -WarningVariable. For more information, see
0 commit comments