Skip to content

Commit 41658bf

Browse files
authored
Fixing Passthru to proper CamelCase (#11515)
1 parent 8000a19 commit 41658bf

File tree

28 files changed

+54
-54
lines changed

28 files changed

+54
-54
lines changed

reference/5.1/CimCmdlets/Set-CimInstance.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ Set-CimInstance -InputObject $x -Property @{VariableValue="somevalue"} -PassThru
100100
This example retrieves the CIM instance objects filtered by the Query parameter in to a variable
101101
`$x` using `Get-CimInstance`, and then passes the contents of the variable to the `Set-CimInstance`
102102
cmdlet. `Set-CimInstance` then modifies the **VariableValue** property to **somevalue**. Because the
103-
**Passthru** parameter is used, This example returns a modified CIM instance object.
103+
**PassThru** parameter is used, This example returns a modified CIM instance object.
104104

105105
### Example 4: Set the CIM instance property
106106

107107
This example retrieves the CIM instance object that is specified in the **Query** parameter into a
108108
variable `$x` using the `Get-CimInstance` cmdlet, and changes the **VariableValue** property value
109109
of the object to change. The CIM instance object is then saved using the `Set-CimInstance` cmdlet.
110-
Because the **Passthru** parameter is used, This example returns a modified CIM instance object.
110+
Because the **PassThru** parameter is used, This example returns a modified CIM instance object.
111111

112112
```powershell
113113
$x = Get-CimInstance -Query 'Select * from Win32_Environment where name="testvar"'
@@ -138,7 +138,7 @@ Set-CimInstance -Query 'Select * from Win32_Environment where name LIKE "testvar
138138
This example creates a CIM instance with the specified properties using the `New-CimInstance`
139139
cmdlet, and retrieves its contents in to a variable `$x`. The variable is then passed to the
140140
`Set-CimInstance` cmdlet, which modifies the value of **VariableValue** property to **somevalue**.
141-
Because the **Passthru** parameter is used, This example returns a modified CIM instance object.
141+
Because the **PassThru** parameter is used, This example returns a modified CIM instance object.
142142

143143
```powershell
144144
$x = New-CimInstance -ClassName Win32_Environment -Property @{Name="testvar";UserName="domain\user"} -Key Name,UserName -ClientOnly
@@ -409,7 +409,7 @@ By default, this cmdlet returns no output.
409409
410410
### Microsoft.Management.Infrastructure.CimInstance
411411
412-
When you use the **Passthru** parameter, this cmdlet returns the modified CIM instance object.
412+
When you use the **PassThru** parameter, this cmdlet returns the modified CIM instance object.
413413
414414
## NOTES
415415

reference/5.1/Microsoft.PowerShell.Core/Add-History.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Appends entries to the session history.
1616
## SYNTAX
1717

1818
```
19-
Add-History [[-InputObject] <PSObject[]>] [-Passthru] [<CommonParameters>]
19+
Add-History [[-InputObject] <PSObject[]>] [-PassThru] [<CommonParameters>]
2020
```
2121

2222
## DESCRIPTION
@@ -138,7 +138,7 @@ Accept pipeline input: True (ByValue)
138138
Accept wildcard characters: False
139139
```
140140
141-
### -Passthru
141+
### -PassThru
142142
143143
Indicates that this cmdlet returns a **HistoryInfo** object for each history entry. By default, this
144144
cmdlet does not generate any output.

reference/5.1/Microsoft.PowerShell.Core/Add-PSSnapin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ This command adds the Microsoft Exchange and Active Directory snap-ins to the cu
4646
### Example 2: Add all the registered snap-ins
4747

4848
```powershell
49-
PS C:\> Get-PSSnapin -Registered | Add-PSSnapin -Passthru
49+
PS C:\> Get-PSSnapin -Registered | Add-PSSnapin -PassThru
5050
```
5151

5252
This command adds all of the registered Windows PowerShell snap-ins to the session. It uses the

reference/5.1/Microsoft.PowerShell.Core/Import-Module.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ TestCmdlets Script
292292
```
293293

294294
```powershell
295-
$a = Import-Module -Name Show-Calendar -AsCustomObject -Passthru
295+
$a = Import-Module -Name Show-Calendar -AsCustomObject -PassThru
296296
$a | Get-Member
297297
```
298298

reference/5.1/Microsoft.PowerShell.Security/Set-Acl.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@ Changes the security descriptor of a specified item, such as a file or a registr
1919

2020
```
2121
Set-Acl [-Path] <String[]> [-AclObject] <Object> [[-CentralAccessPolicy] <String>] [-ClearCentralAccessPolicy]
22-
[-Passthru] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>] [-WhatIf] [-Confirm]
22+
[-PassThru] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>] [-WhatIf] [-Confirm]
2323
[-UseTransaction] [<CommonParameters>]
2424
```
2525

2626
### ByInputObject
2727

2828
```
29-
Set-Acl [-InputObject] <PSObject> [-AclObject] <Object> [-Passthru] [-Filter <String>] [-Include <String[]>]
29+
Set-Acl [-InputObject] <PSObject> [-AclObject] <Object> [-PassThru] [-Filter <String>] [-Include <String[]>]
3030
[-Exclude <String[]>] [-WhatIf] [-Confirm] [-UseTransaction] [<CommonParameters>]
3131
```
3232

3333
### ByLiteralPath
3434

3535
```
3636
Set-Acl -LiteralPath <String[]> [-AclObject] <Object> [[-CentralAccessPolicy] <String>]
37-
[-ClearCentralAccessPolicy] [-Passthru] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
37+
[-ClearCentralAccessPolicy] [-PassThru] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
3838
[-WhatIf] [-Confirm] [-UseTransaction] [<CommonParameters>]
3939
```
4040

@@ -341,7 +341,7 @@ Accept pipeline input: True (ByPropertyName)
341341
Accept wildcard characters: False
342342
```
343343

344-
### -Passthru
344+
### -PassThru
345345

346346
Returns an object that represents the security descriptor that was changed. By default, this cmdlet
347347
does not generate any output.

reference/5.1/Microsoft.PowerShell.Utility/Invoke-WebRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ Specifies the output file for which this cmdlet saves the response body. Enter a
434434
If you omit the path, the default is the current location.
435435

436436
By default, `Invoke-WebRequest` returns the results to the pipeline. To send the results to a file
437-
and to the pipeline, use the **Passthru** parameter.
437+
and to the pipeline, use the **PassThru** parameter.
438438

439439
```yaml
440440
Type: System.String

reference/5.1/Microsoft.PowerShell.Utility/Out-GridView.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ The values of this parameter determine how many items you can send down the pipe
188188
- `Single`. Zero items or one item. Use this value when the next command can take only one input
189189
object.
190190
- `Multiple`. Zero, one, or many items. Use this value when the next command can take multiple input
191-
objects. This value is equivalent to the **Passthru** parameter.
191+
objects. This value is equivalent to the **PassThru** parameter.
192192

193193
This parameter was introduced in Windows PowerShell 3.0.
194194

reference/5.1/PSScheduledJob/About/about_Scheduled_Jobs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ This example uses the **ContinueIfGoingOnBattery** parameter of the
9696

9797
```powershell
9898
Get-ScheduledJob -Name ProcessJob | Set-ScheduledJobOption `
99-
-ContinueIfGoingOnBattery -Passthru
99+
-ContinueIfGoingOnBattery -PassThru
100100
```
101101

102102
```Output

reference/5.1/PSScheduledJob/Disable-ScheduledJob.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ This cmdlet was introduced in Windows PowerShell 3.0.
5959
This example disables a scheduled job on the local computer.
6060

6161
```powershell
62-
Disable-ScheduledJob -ID 2 -Passthru
62+
Disable-ScheduledJob -ID 2 -PassThru
6363
```
6464

6565
This command disables the scheduled job with ID 2 on the local computer.
@@ -69,7 +69,7 @@ This command disables the scheduled job with ID 2 on the local computer.
6969
This example disables all scheduled jobs on the local computer.
7070

7171
```powershell
72-
Get-ScheduledJob | Disable-ScheduledJob -Passthru
72+
Get-ScheduledJob | Disable-ScheduledJob -PassThru
7373
```
7474

7575
```Output

reference/5.1/PSScheduledJob/Enable-ScheduledJob.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ This cmdlet was introduced in Windows PowerShell 3.0.
5757
This example enables the scheduled job on a local computer.
5858

5959
```powershell
60-
Enable-ScheduledJob -ID 2 -Passthru
60+
Enable-ScheduledJob -ID 2 -PassThru
6161
```
6262

6363
The `Enable-ScheduledJob` command enables the scheduled job with ID 2 on the local computer. The

0 commit comments

Comments
 (0)