Skip to content

Commit 0736502

Browse files
michaeltlombardisdwheeler
authored andcommitted
(AB-568561) [switch] parameter in Core cmdlets
1 parent db89991 commit 0736502

File tree

12 files changed

+20
-20
lines changed

12 files changed

+20
-20
lines changed

reference/5.1/Microsoft.PowerShell.Core/Disable-PSRemoting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ A loopback connection is created when the following conditions are met:
212212
- The computer name to connect to is 'localhost'.
213213
- No credentials are passed in. Current logged in user (implicit credentials) is used for the
214214
connection.
215-
- The **EnableNetworkAccess** switch parameter is used.
215+
- The **EnableNetworkAccess** `[switch]` parameter is used.
216216

217217
For more information on loopback connections, see [New-PSSession](New-PSSession.md) document.
218218

reference/5.1/Microsoft.PowerShell.Core/Get-Help.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ Get-Help Format-Table -Parameter GroupBy
191191
```
192192

193193
The **Examples** parameter displays the help file's **NAME** and **SYNOPSIS** sections, and all the
194-
Examples. You can't specify an Example number because the **Examples** parameter is a switch
194+
Examples. You can't specify an Example number because the **Examples** parameter is a `[switch]`
195195
parameter.
196196

197197
The **Parameter** parameter displays only the descriptions of the specified parameters. If you

reference/5.1/Microsoft.PowerShell.Core/Where-Object.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,9 @@ command.
256256
All PowerShell comparison operators are valid in the scriptblock format. For more information,
257257
see [about_Comparison_Operators](./About/about_Comparison_Operators.md).
258258

259-
- **Simplified syntax**. To enable the simiplified syntax, `Where-Object` includes 31 switch
259+
- **Simplified syntax**. To enable the simiplified syntax, `Where-Object` includes 31 `[switch]`
260260
parameters that represent the comparison operators. The simplified syntax is easier to read and
261-
write than the scriptblock syntax. You can combine one of the switch parameters with the
261+
write than the scriptblock syntax. You can combine one of the `[switch]` parameters with the
262262
**Property** and **Value** parameters to create a command that filters objects based on the
263263
values of their properties.
264264

@@ -271,7 +271,7 @@ command.
271271

272272
As shown in the example, the parameter names **Property** and **Value** are optional. The
273273
**Property** parameter is a positional parameter mapped to position `0`. The **Value** parameter
274-
is a positional parameter mapped to position `1`. The switch parameter, used to specify the
274+
is a positional parameter mapped to position `1`. The `[switch]` parameter, used to specify the
275275
comparison, can be used in any position.
276276

277277
The simplified syntax was introduced in Windows PowerShell 3.0. For more information, see

reference/7.4/Microsoft.PowerShell.Core/Disable-PSRemoting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ A loopback connection is created when the following conditions are met:
235235
- The computer name to connect to is 'localhost'.
236236
- No credentials are passed in. Current logged in user (implicit credentials) is used for the
237237
connection.
238-
- The **EnableNetworkAccess** switch parameter is used.
238+
- The **EnableNetworkAccess** `[switch]` parameter is used.
239239

240240
For more information on loopback connections, see [New-PSSession](New-PSSession.md) document.
241241

reference/7.4/Microsoft.PowerShell.Core/Get-Help.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ Get-Help Format-Table -Parameter GroupBy
191191
```
192192

193193
The **Examples** parameter displays the help file's **NAME** and **SYNOPSIS** sections, and all the
194-
Examples. You can't specify an Example number because the **Examples** parameter is a switch
194+
Examples. You can't specify an Example number because the **Examples** parameter is a `[switch]`
195195
parameter.
196196

197197
The **Parameter** parameter displays only the descriptions of the specified parameters. If you

reference/7.4/Microsoft.PowerShell.Core/Where-Object.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,9 @@ command.
263263
All PowerShell comparison operators are valid in the scriptblock format. For more information,
264264
see [about_Comparison_Operators](./About/about_Comparison_Operators.md).
265265

266-
- **Simplified syntax**. To enable the simiplified syntax, `Where-Object` includes 31 switch
266+
- **Simplified syntax**. To enable the simiplified syntax, `Where-Object` includes 31 `[switch]`
267267
parameters that represent the comparison operators. The simplified syntax is easier to read and
268-
write than the scriptblock syntax. You can combine one of the switch parameters with the
268+
write than the scriptblock syntax. You can combine one of the `[switch]` parameters with the
269269
**Property** and **Value** parameters to create a command that filters objects based on the
270270
values of their properties.
271271

@@ -278,7 +278,7 @@ command.
278278

279279
As shown in the example, the parameter names **Property** and **Value** are optional. The
280280
**Property** parameter is a positional parameter mapped to position `0`. The **Value** parameter
281-
is a positional parameter mapped to position `1`. The switch parameter, used to specify the
281+
is a positional parameter mapped to position `1`. The `[switch]` parameter, used to specify the
282282
comparison, can be used in any position.
283283

284284
The simplified syntax was introduced in Windows PowerShell 3.0. For more information, see

reference/7.5/Microsoft.PowerShell.Core/Disable-PSRemoting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ A loopback connection is created when the following conditions are met:
236236
- The computer name to connect to is 'localhost'.
237237
- No credentials are passed in. Current logged in user (implicit credentials) is used for the
238238
connection.
239-
- The **EnableNetworkAccess** switch parameter is used.
239+
- The **EnableNetworkAccess** `[switch]` parameter is used.
240240

241241
For more information on loopback connections, see [New-PSSession](New-PSSession.md) document.
242242

reference/7.5/Microsoft.PowerShell.Core/Get-Help.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ Get-Help Format-Table -Parameter GroupBy
191191
```
192192

193193
The **Examples** parameter displays the help file's **NAME** and **SYNOPSIS** sections, and all the
194-
Examples. You can't specify an Example number because the **Examples** parameter is a switch
194+
Examples. You can't specify an Example number because the **Examples** parameter is a `[switch]`
195195
parameter.
196196

197197
The **Parameter** parameter displays only the descriptions of the specified parameters. If you

reference/7.5/Microsoft.PowerShell.Core/Where-Object.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,9 @@ command.
263263
All PowerShell comparison operators are valid in the scriptblock format. For more information,
264264
see [about_Comparison_Operators](./About/about_Comparison_Operators.md).
265265

266-
- **Simplified syntax**. To enable the simiplified syntax, `Where-Object` includes 31 switch
266+
- **Simplified syntax**. To enable the simiplified syntax, `Where-Object` includes 31 `[switch]`
267267
parameters that represent the comparison operators. The simplified syntax is easier to read and
268-
write than the scriptblock syntax. You can combine one of the switch parameters with the
268+
write than the scriptblock syntax. You can combine one of the `[switch]` parameters with the
269269
**Property** and **Value** parameters to create a command that filters objects based on the
270270
values of their properties.
271271

@@ -278,7 +278,7 @@ command.
278278

279279
As shown in the example, the parameter names **Property** and **Value** are optional. The
280280
**Property** parameter is a positional parameter mapped to position `0`. The **Value** parameter
281-
is a positional parameter mapped to position `1`. The switch parameter, used to specify the
281+
is a positional parameter mapped to position `1`. The `[switch]` parameter, used to specify the
282282
comparison, can be used in any position.
283283

284284
The simplified syntax was introduced in Windows PowerShell 3.0. For more information, see

reference/7.6/Microsoft.PowerShell.Core/Disable-PSRemoting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ A loopback connection is created when the following conditions are met:
235235
- The computer name to connect to is 'localhost'.
236236
- No credentials are passed in. Current logged in user (implicit credentials) is used for the
237237
connection.
238-
- The **EnableNetworkAccess** switch parameter is used.
238+
- The **EnableNetworkAccess** `[switch]` parameter is used.
239239

240240
For more information on loopback connections, see [New-PSSession](New-PSSession.md) document.
241241

0 commit comments

Comments
 (0)