Skip to content

Commit ed057e0

Browse files
authored
Merge branch 'main' into roharwoo_cau_stage_2_examples
2 parents 976a8fe + b23cbc2 commit ed057e0

17 files changed

+219
-0
lines changed

docset/winserver2022-ps/clusterawareupdating/Add-CauClusterRole.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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
```
2021
Add-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
```
3335
Add-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+
4548
The **Add-CauClusterRole** cmdlet adds the Cluster-Aware Updating (CAU) clustered role that provides
4649
the self-updating functionality to the specified cluster. When the CAU clustered role has been added
4750
to 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
8488
Learn 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
111116
Learn 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+
144151
Specifies an array of name=value pairs (arguments) for each updating plug-in to use.
145152
For 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+
202210
Specifies one or more plug-ins to use when performing scans or updates. You can specify multiple
203211
values separated with commas. The default is the Microsoft.WindowsUpdatePlugin plug-in. This plug-in
204212
coordinates 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+
222231
Specifies the name of the cluster on which to create the CAU clustered role. This parameter is only
223232
required when this cmdlet is not run on a failover cluster node, or this cmdlet is used to reference
224233
a failover cluster different from where the cmdlet is run.
@@ -236,6 +245,7 @@ Accept wildcard characters: False
236245
```
237246
238247
### -ConfigurationName
248+
239249
Specifies the Windows PowerShell session configuration that defines the session in which scripts,
240250
specified by the *PreUpdateScript* and *PostUpdateScript* parameters, and cmdlets are run, and can
241251
limit 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+
258269
Prompts you for confirmation before running the cmdlet.
259270
260271
```yaml
@@ -270,6 +281,7 @@ Accept wildcard characters: False
270281
```
271282
272283
### -Credential
284+
273285
Specifies the administrative credentials for the target cluster.
274286
275287
```yaml
@@ -285,6 +297,7 @@ Accept wildcard characters: False
285297
```
286298
287299
### -DaysOfWeek
300+
288301
Specifies the days of the week on which the updating task will be triggered.
289302
Multiple 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+
315329
Indicates that the cmdlet enables the Remote Shutdown Windows Firewall rule group on each cluster
316330
node, if it is not already enabled. If the *EnableFirewallRules* parameter is specified, CAU will
317331
also 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+
338353
Specifies the method used to bring drained workloads back to the node, at the end of updating the
339354
node. Drained workloads are workloads that were previously running on the node, but were moved to
340355
another node.
@@ -361,6 +376,7 @@ Accept wildcard characters: False
361376
```
362377
363378
### -Force
379+
364380
Forces 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+
379396
Specifies 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+
394412
Specifies the interval between weeks when the task will be triggered.
395413
An interval of 1 produces a weekly schedule.
396414
An interval of 2 produces an every-other week schedule.
@@ -408,6 +426,7 @@ Accept wildcard characters: False
408426
```
409427
410428
### -MaxFailedNodes
429+
411430
Specifies the maximum number of nodes on which updating can fail.
412431
If one more than this number of nodes fails, then the Updating Run is stopped.
413432
The 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+
429449
Specifies the maximum number of times that the update process attempts to run.
430450
This includes any pre-update and post-update scripts.
431451
The update process is retried per node.
@@ -444,6 +464,7 @@ Accept wildcard characters: False
444464
```
445465
446466
### -NodeOrder
467+
447468
Specifies 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+
462484
Specifies the path and file name for a Windows PowerShell script to run on each node after updating
463485
finishes, and just after the node is brought out of Maintenance mode. The file name extension must
464486
be .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+
481504
Specifies the path and file name for a Windows PowerShell script to run on each node before updating
482505
begins, and before the node is put into Maintenance mode. The file name extension must be .ps1 and
483506
the 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+
501525
Specifies the time in minutes that CAU allows for the restarting of a node. If the restart does not
502526
complete 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+
517542
Indicates that the cmdlet enforces that all cluster nodes are online and reachable before updating
518543
begins.
519544
@@ -530,6 +555,7 @@ Accept wildcard characters: False
530555
```
531556
532557
### -RunPluginsSerially
558+
533559
Indicates that the cmdlet CAU scans each cluster node for applicable updates and stages the updates
534560
for each plug-in in the plug-in order when multiple plug-ins are used during an Updating Run when
535561
you 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+
555582
Indicates that this cmdlet shuts down CAU and restarts a cluster node after each plug-in installs
556583
updates on the node, if the installation of an update by a plug-in requires a restart. By default,
557584
during 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+
576604
Specifies 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+
591620
Specifies the time in minutes after which the updating run is canceled if it has not completed. The
592621
time 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+
612642
Indicates that this cmdlet coordinates subsequent updates on the node when plug-ins are stopped.
613643
When multiple plug-ins are used during an updating run, by default, a failure by one plug-in does
614644
not 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+
631662
Specifies the maximum amount of time CAU should wait for the **Suspend-ClusterNode** cmdlet to
632663
succeed if the underlying clustered space is in degraded condition.
633664

@@ -651,6 +682,7 @@ Accept wildcard characters: False
651682
```
652683

653684
### -VirtualComputerObjectName
685+
654686
Specifies the name of a pre-staged virtual computer object that is used by the CAU clustered role.
655687
For 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+
674707
Specifies the time in minutes after which a warning will be logged if the Updating Run (including
675708
any pre-update and post-update scripts) has not completed. By default, no warning will be logged,
676709
regardless of the time taken by the Updating Run.
@@ -688,6 +721,7 @@ Accept wildcard characters: False
688721
```
689722

690723
### -WeeksOfMonth
724+
691725
Specifies the weeks of the month when the Updating Run should be run.
692726
The value `5` represents the last week of the month.
693727

@@ -704,6 +738,7 @@ Accept wildcard characters: False
704738
```
705739

706740
### -WhatIf
741+
707742
Shows what would happen if the cmdlet runs.
708743
The cmdlet is not run.
709744

@@ -720,6 +755,7 @@ Accept wildcard characters: False
720755
```
721756

722757
### CommonParameters
758+
723759
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
724760
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
725761
-WarningAction, and -WarningVariable. For more information, see

docset/winserver2022-ps/clusterawareupdating/Disable-CauClusterRole.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@ Disable-CauClusterRole [[-ClusterName] <String>] [-Credential <PSCredential>] [-
2121
```
2222

2323
## DESCRIPTION
24+
2425
The **Disable-CauClusterRole** cmdlet suspends the self-updating functionality on the specified
2526
cluster. The self-updating functionality of the cluster can be re-enabled with the
2627
**Enable-CauClusterRole** cmdlet.
2728

2829
## EXAMPLES
2930

3031
### Example 1: Disable a CAU clustered role on the specified cluster
32+
3133
```powershell
3234
Disable-CauClusterRole -ClusterName CONTOSO-FC1 -Force
3335
```
@@ -39,6 +41,7 @@ specified the *Force* parameter, the cmdlet runs without displaying confirmation
3941
## PARAMETERS
4042

4143
### -ClusterName
44+
4245
Specifies the name of the cluster on which to disable the self-updating functionality. This
4346
parameter is only required when this cmdlet is not run on a failover cluster node, or this cmdlet is
4447
used to reference a failover cluster different from where the cmdlet is run.
@@ -56,6 +59,7 @@ Accept wildcard characters: False
5659
```
5760
5861
### -Confirm
62+
5963
Prompts you for confirmation before running the cmdlet.
6064
6165
```yaml
@@ -71,6 +75,7 @@ Accept wildcard characters: False
7175
```
7276
7377
### -Credential
78+
7479
Specifies the administrative credentials for the target cluster.
7580
7681
```yaml
@@ -86,6 +91,7 @@ Accept wildcard characters: False
8691
```
8792
8893
### -Force
94+
8995
Forces the command to run without asking for user confirmation.
9096
9197
```yaml
@@ -101,6 +107,7 @@ Accept wildcard characters: False
101107
```
102108
103109
### -WhatIf
110+
104111
Shows what would happen if the cmdlet runs.
105112
The cmdlet is not run.
106113
@@ -117,6 +124,7 @@ Accept wildcard characters: False
117124
```
118125
119126
### CommonParameters
127+
120128
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
121129
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
122130
-WarningAction, and -WarningVariable. For more information, see

0 commit comments

Comments
 (0)