Skip to content

Commit a554abf

Browse files
committed
Update Set-ExchangeFeature.md
Confirm, WhatIf, and clarification on switch parameters.
1 parent a56f402 commit a554abf

File tree

1 file changed

+39
-2
lines changed

1 file changed

+39
-2
lines changed

exchange/exchange-ps/exchange/Set-ExchangeFeature.md

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ For information about the parameter sets in the Syntax section below, see [Excha
2424
Set-ExchangeFeature [-Identity] <ServerIdParameter>
2525
[-Approve]
2626
[-Block]
27+
[-Confirm]
2728
[-FeatureID <MultiValuedProperty>]
29+
[-WhatIf]
2830
[<CommonParameters>]
2931
```
3032

@@ -80,7 +82,7 @@ Accept wildcard characters: False
8082
```
8183
8284
### -Approve
83-
The Approve parameter approves the feature specified by the FeatureID parameter.
85+
The Approve switch approves the feature specified by the FeatureID parameter. You don't need to specify a value with this switch.
8486
8587
```yaml
8688
Type: SwitchParameter
@@ -96,7 +98,7 @@ Accept wildcard characters: False
9698
```
9799
98100
### -Block
99-
he Block parameter blocks the feature specified by the FeatureID parameter.
101+
The Block switch blocks the feature specified by the FeatureID parameter. You don't need to specify a value with this switch.
100102
101103
```yaml
102104
Type: SwitchParameter
@@ -111,6 +113,25 @@ Accept pipeline input: False
111113
Accept wildcard characters: False
112114
```
113115
116+
### -Confirm
117+
The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on if the cmdlet requires confirmation before proceeding.
118+
119+
- Destructive cmdlets (for example, Remove-\* cmdlets) have a built-in pause that forces you to acknowledge the command before proceeding. For these cmdlets, you can skip the confirmation prompt by using this exact syntax: `-Confirm:$false`.
120+
- Most other cmdlets (for example, New-\* and Set-\* cmdlets) don't have a built-in pause. For these cmdlets, specifying the Confirm switch without a value introduces a pause that forces you acknowledge the command before proceeding.
121+
122+
```yaml
123+
Type: SwitchParameter
124+
Parameter Sets: (All)
125+
Aliases: cf
126+
Applicable: Exchange Server 2019
127+
128+
Required: False
129+
Position: Named
130+
Default value: None
131+
Accept pipeline input: False
132+
Accept wildcard characters: False
133+
```
134+
114135
### -FeatureID
115136
The FeatureID parameter specifies the feature you want to control.
116137

@@ -127,6 +148,22 @@ Accept pipeline input: False
127148
Accept wildcard characters: False
128149
```
129150

151+
### -WhatIf
152+
The WhatIf switch simulates the actions of the command. You can use this switch to view the changes that would occur without actually applying those changes. You don't need to specify a value with this switch.
153+
154+
```yaml
155+
Type: SwitchParameter
156+
Parameter Sets: (All)
157+
Aliases: wi
158+
Applicable: Exchange Server 2019
159+
160+
Required: False
161+
Position: Named
162+
Default value: None
163+
Accept pipeline input: False
164+
Accept wildcard characters: False
165+
```
166+
130167
### CommonParameters
131168
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/p/?LinkID=113216).
132169

0 commit comments

Comments
 (0)