diff --git a/reference/5.1/CimCmdlets/Set-CimInstance.md b/reference/5.1/CimCmdlets/Set-CimInstance.md index ab6c1f1eb04c..9da90b0b89ac 100644 --- a/reference/5.1/CimCmdlets/Set-CimInstance.md +++ b/reference/5.1/CimCmdlets/Set-CimInstance.md @@ -100,14 +100,14 @@ Set-CimInstance -InputObject $x -Property @{VariableValue="somevalue"} -PassThru This example retrieves the CIM instance objects filtered by the Query parameter in to a variable `$x` using `Get-CimInstance`, and then passes the contents of the variable to the `Set-CimInstance` cmdlet. `Set-CimInstance` then modifies the **VariableValue** property to **somevalue**. Because the -**Passthru** parameter is used, This example returns a modified CIM instance object. +**PassThru** parameter is used, This example returns a modified CIM instance object. ### Example 4: Set the CIM instance property This example retrieves the CIM instance object that is specified in the **Query** parameter into a variable `$x` using the `Get-CimInstance` cmdlet, and changes the **VariableValue** property value of the object to change. The CIM instance object is then saved using the `Set-CimInstance` cmdlet. -Because the **Passthru** parameter is used, This example returns a modified CIM instance object. +Because the **PassThru** parameter is used, This example returns a modified CIM instance object. ```powershell $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 This example creates a CIM instance with the specified properties using the `New-CimInstance` cmdlet, and retrieves its contents in to a variable `$x`. The variable is then passed to the `Set-CimInstance` cmdlet, which modifies the value of **VariableValue** property to **somevalue**. -Because the **Passthru** parameter is used, This example returns a modified CIM instance object. +Because the **PassThru** parameter is used, This example returns a modified CIM instance object. ```powershell $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. ### Microsoft.Management.Infrastructure.CimInstance -When you use the **Passthru** parameter, this cmdlet returns the modified CIM instance object. +When you use the **PassThru** parameter, this cmdlet returns the modified CIM instance object. ## NOTES diff --git a/reference/5.1/Microsoft.PowerShell.Core/Add-History.md b/reference/5.1/Microsoft.PowerShell.Core/Add-History.md index fc0a7abc6be1..44b57f17d9ae 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/Add-History.md +++ b/reference/5.1/Microsoft.PowerShell.Core/Add-History.md @@ -16,7 +16,7 @@ Appends entries to the session history. ## SYNTAX ``` -Add-History [[-InputObject] ] [-Passthru] [] +Add-History [[-InputObject] ] [-PassThru] [] ``` ## DESCRIPTION @@ -138,7 +138,7 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -Passthru +### -PassThru Indicates that this cmdlet returns a **HistoryInfo** object for each history entry. By default, this cmdlet does not generate any output. diff --git a/reference/5.1/Microsoft.PowerShell.Core/Add-PSSnapin.md b/reference/5.1/Microsoft.PowerShell.Core/Add-PSSnapin.md index be94622b8e6d..bc4ac92aa355 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/Add-PSSnapin.md +++ b/reference/5.1/Microsoft.PowerShell.Core/Add-PSSnapin.md @@ -46,7 +46,7 @@ This command adds the Microsoft Exchange and Active Directory snap-ins to the cu ### Example 2: Add all the registered snap-ins ```powershell -PS C:\> Get-PSSnapin -Registered | Add-PSSnapin -Passthru +PS C:\> Get-PSSnapin -Registered | Add-PSSnapin -PassThru ``` This command adds all of the registered Windows PowerShell snap-ins to the session. It uses the diff --git a/reference/5.1/Microsoft.PowerShell.Core/Import-Module.md b/reference/5.1/Microsoft.PowerShell.Core/Import-Module.md index 82d9f1492744..3a1631a73763 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/Import-Module.md +++ b/reference/5.1/Microsoft.PowerShell.Core/Import-Module.md @@ -292,7 +292,7 @@ TestCmdlets Script ``` ```powershell -$a = Import-Module -Name Show-Calendar -AsCustomObject -Passthru +$a = Import-Module -Name Show-Calendar -AsCustomObject -PassThru $a | Get-Member ``` diff --git a/reference/5.1/Microsoft.PowerShell.Security/Set-Acl.md b/reference/5.1/Microsoft.PowerShell.Security/Set-Acl.md index 29c26ba521a4..445f31b977f8 100644 --- a/reference/5.1/Microsoft.PowerShell.Security/Set-Acl.md +++ b/reference/5.1/Microsoft.PowerShell.Security/Set-Acl.md @@ -19,14 +19,14 @@ Changes the security descriptor of a specified item, such as a file or a registr ``` Set-Acl [-Path] [-AclObject] [[-CentralAccessPolicy] ] [-ClearCentralAccessPolicy] - [-Passthru] [-Filter ] [-Include ] [-Exclude ] [-WhatIf] [-Confirm] + [-PassThru] [-Filter ] [-Include ] [-Exclude ] [-WhatIf] [-Confirm] [-UseTransaction] [] ``` ### ByInputObject ``` -Set-Acl [-InputObject] [-AclObject] [-Passthru] [-Filter ] [-Include ] +Set-Acl [-InputObject] [-AclObject] [-PassThru] [-Filter ] [-Include ] [-Exclude ] [-WhatIf] [-Confirm] [-UseTransaction] [] ``` @@ -34,7 +34,7 @@ Set-Acl [-InputObject] [-AclObject] [-Passthru] [-Filter [-AclObject] [[-CentralAccessPolicy] ] - [-ClearCentralAccessPolicy] [-Passthru] [-Filter ] [-Include ] [-Exclude ] + [-ClearCentralAccessPolicy] [-PassThru] [-Filter ] [-Include ] [-Exclude ] [-WhatIf] [-Confirm] [-UseTransaction] [] ``` @@ -341,7 +341,7 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` -### -Passthru +### -PassThru Returns an object that represents the security descriptor that was changed. By default, this cmdlet does not generate any output. diff --git a/reference/5.1/Microsoft.PowerShell.Utility/Invoke-WebRequest.md b/reference/5.1/Microsoft.PowerShell.Utility/Invoke-WebRequest.md index e60be6dc1538..4a8ffe7689df 100644 --- a/reference/5.1/Microsoft.PowerShell.Utility/Invoke-WebRequest.md +++ b/reference/5.1/Microsoft.PowerShell.Utility/Invoke-WebRequest.md @@ -434,7 +434,7 @@ Specifies the output file for which this cmdlet saves the response body. Enter a If you omit the path, the default is the current location. By default, `Invoke-WebRequest` returns the results to the pipeline. To send the results to a file -and to the pipeline, use the **Passthru** parameter. +and to the pipeline, use the **PassThru** parameter. ```yaml Type: System.String diff --git a/reference/5.1/Microsoft.PowerShell.Utility/Out-GridView.md b/reference/5.1/Microsoft.PowerShell.Utility/Out-GridView.md index 3b0042d09e6e..26ca61cb8108 100644 --- a/reference/5.1/Microsoft.PowerShell.Utility/Out-GridView.md +++ b/reference/5.1/Microsoft.PowerShell.Utility/Out-GridView.md @@ -188,7 +188,7 @@ The values of this parameter determine how many items you can send down the pipe - `Single`. Zero items or one item. Use this value when the next command can take only one input object. - `Multiple`. Zero, one, or many items. Use this value when the next command can take multiple input - objects. This value is equivalent to the **Passthru** parameter. + objects. This value is equivalent to the **PassThru** parameter. This parameter was introduced in Windows PowerShell 3.0. diff --git a/reference/5.1/PSScheduledJob/About/about_Scheduled_Jobs.md b/reference/5.1/PSScheduledJob/About/about_Scheduled_Jobs.md index c0e26c5e07c4..057678279528 100644 --- a/reference/5.1/PSScheduledJob/About/about_Scheduled_Jobs.md +++ b/reference/5.1/PSScheduledJob/About/about_Scheduled_Jobs.md @@ -96,7 +96,7 @@ This example uses the **ContinueIfGoingOnBattery** parameter of the ```powershell Get-ScheduledJob -Name ProcessJob | Set-ScheduledJobOption ` --ContinueIfGoingOnBattery -Passthru +-ContinueIfGoingOnBattery -PassThru ``` ```Output diff --git a/reference/5.1/PSScheduledJob/Disable-ScheduledJob.md b/reference/5.1/PSScheduledJob/Disable-ScheduledJob.md index 3ffae67c5668..a24b0ea8bd43 100644 --- a/reference/5.1/PSScheduledJob/Disable-ScheduledJob.md +++ b/reference/5.1/PSScheduledJob/Disable-ScheduledJob.md @@ -59,7 +59,7 @@ This cmdlet was introduced in Windows PowerShell 3.0. This example disables a scheduled job on the local computer. ```powershell -Disable-ScheduledJob -ID 2 -Passthru +Disable-ScheduledJob -ID 2 -PassThru ``` 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. This example disables all scheduled jobs on the local computer. ```powershell -Get-ScheduledJob | Disable-ScheduledJob -Passthru +Get-ScheduledJob | Disable-ScheduledJob -PassThru ``` ```Output diff --git a/reference/5.1/PSScheduledJob/Enable-ScheduledJob.md b/reference/5.1/PSScheduledJob/Enable-ScheduledJob.md index f0eafdb4dbac..5cb01239dde0 100644 --- a/reference/5.1/PSScheduledJob/Enable-ScheduledJob.md +++ b/reference/5.1/PSScheduledJob/Enable-ScheduledJob.md @@ -57,7 +57,7 @@ This cmdlet was introduced in Windows PowerShell 3.0. This example enables the scheduled job on a local computer. ```powershell -Enable-ScheduledJob -ID 2 -Passthru +Enable-ScheduledJob -ID 2 -PassThru ``` The `Enable-ScheduledJob` command enables the scheduled job with ID 2 on the local computer. The diff --git a/reference/5.1/PSScheduledJob/Set-JobTrigger.md b/reference/5.1/PSScheduledJob/Set-JobTrigger.md index 479ada213773..4e3c5b5f647b 100644 --- a/reference/5.1/PSScheduledJob/Set-JobTrigger.md +++ b/reference/5.1/PSScheduledJob/Set-JobTrigger.md @@ -69,7 +69,7 @@ Id Frequency Time DaysOfWeek Enable ``` ```powershell -Get-JobTrigger -Name "DeployPackage" | Set-JobTrigger -DaysOfWeek "Wednesday", "Sunday" -Passthru +Get-JobTrigger -Name "DeployPackage" | Set-JobTrigger -DaysOfWeek "Wednesday", "Sunday" -PassThru ``` ```Output @@ -85,7 +85,7 @@ Saturdays. The second command uses the `Get-JobTrigger` cmdlet to get the job trigger of the `DeployPackage` scheduled job. A pipeline operator (`|`) sends the trigger to the `Set-JobTrigger` cmdlet, which changes the job trigger so that it starts the `DeployPackage` job on Wednesdays and Sundays. The -command uses the **Passthru** parameter to return the trigger after the change. +command uses the **PassThru** parameter to return the trigger after the change. This command is not required; it is included only to show the effect of the trigger change. @@ -124,7 +124,7 @@ The second command uses the `Get-JobTrigger` cmdlet to get the **AtStartup** job `Inventory` job. The command uses the **TriggerID** parameter to identify the job trigger. A pipeline operator (`|`) sends the job trigger to the `Set-JobTrigger` cmdlet, which changes it to a weekly job trigger that runs every four weeks on Monday at midnight. The command uses the -**Passthru** parameter to return the trigger after the change. +**PassThru** parameter to return the trigger after the change. This command is not required; it is included only to show the effect of the trigger change. diff --git a/reference/5.1/PSScheduledJob/Set-ScheduledJob.md b/reference/5.1/PSScheduledJob/Set-ScheduledJob.md index 0eb7bbf1a56c..0d54fbe827a2 100644 --- a/reference/5.1/PSScheduledJob/Set-ScheduledJob.md +++ b/reference/5.1/PSScheduledJob/Set-ScheduledJob.md @@ -88,7 +88,7 @@ Id Name Triggers Command ``` ```powershell -Get-ScheduledJob -Name "Inventory" | Set-ScheduledJob -FilePath "C:\Scripts\Get-FullInventory.ps1" -Passthru +Get-ScheduledJob -Name "Inventory" | Set-ScheduledJob -FilePath "C:\Scripts\Get-FullInventory.ps1" -PassThru ``` ```Output @@ -103,7 +103,7 @@ shows that the job runs the Get-Inventory.ps1 script. The second command uses the `Get-ScheduledJob` cmdlet to get the Inventory scheduled job. A pipeline operator (`|`) sends the scheduled job to the `Set-ScheduledJob` cmdlet. The `Set-ScheduledJob` cmdlet uses the **Script** parameter to specify a new script, `Get-FullInventory.ps1`. The command -uses the **Passthru** parameter to return the scheduled job after the change. +uses the **PassThru** parameter to return the scheduled job after the change. This command is not required; it is included only to show the effect of the script change. diff --git a/reference/5.1/PSScheduledJob/Set-ScheduledJobOption.md b/reference/5.1/PSScheduledJob/Set-ScheduledJobOption.md index fa8799e7bc43..647273b6d656 100644 --- a/reference/5.1/PSScheduledJob/Set-ScheduledJobOption.md +++ b/reference/5.1/PSScheduledJob/Set-ScheduledJobOption.md @@ -77,7 +77,7 @@ JobDefinition : ```powershell Get-ScheduledJobOption -Name "DeployPackage" | - Set-ScheduledJobOption -WakeToRun -RequireNetwork:$false -Passthru + Set-ScheduledJobOption -WakeToRun -RequireNetwork:$false -PassThru ``` ```Output @@ -103,7 +103,7 @@ DeployPackage scheduled job. The output shows that the WakeToRun and RunElevated to `$false`. The second command uses the `Set-ScheduledJobOpton` cmdlet to change the job options so the values -of the WakeToRun and RunWithoutNetwork properties are $True. The command uses the **Passthru** +of the WakeToRun and RunWithoutNetwork properties are $True. The command uses the **PassThru** parameter to return the trigger after the change. This command is not required; it is included only to show the effect of the option change. diff --git a/reference/7.4/CimCmdlets/Set-CimInstance.md b/reference/7.4/CimCmdlets/Set-CimInstance.md index fc7c3267ef9b..ebc205641666 100644 --- a/reference/7.4/CimCmdlets/Set-CimInstance.md +++ b/reference/7.4/CimCmdlets/Set-CimInstance.md @@ -102,14 +102,14 @@ Set-CimInstance -InputObject $x -Property @{VariableValue="somevalue"} -PassThru This example retrieves the CIM instance objects filtered by the Query parameter in to a variable `$x` using `Get-CimInstance`, and then passes the contents of the variable to the `Set-CimInstance` cmdlet. `Set-CimInstance` then modifies the **VariableValue** property to **somevalue**. Because the -**Passthru** parameter is used, This example returns a modified CIM instance object. +**PassThru** parameter is used, This example returns a modified CIM instance object. ### Example 4: Set the CIM instance property This example retrieves the CIM instance object that is specified in the **Query** parameter into a variable `$x` using the `Get-CimInstance` cmdlet, and changes the **VariableValue** property value of the object to change. The CIM instance object is then saved using the `Set-CimInstance` cmdlet. -Because the **Passthru** parameter is used, This example returns a modified CIM instance object. +Because the **PassThru** parameter is used, This example returns a modified CIM instance object. ```powershell $x = Get-CimInstance -Query 'Select * from Win32_Environment where name="testvar"' @@ -140,7 +140,7 @@ Set-CimInstance -Query 'Select * from Win32_Environment where name LIKE "testvar This example creates a CIM instance with the specified properties using the `New-CimInstance` cmdlet, and retrieves its contents in to a variable `$x`. The variable is then passed to the `Set-CimInstance` cmdlet, which modifies the value of **VariableValue** property to **somevalue**. -Because the **Passthru** parameter is used, This example returns a modified CIM instance object. +Because the **PassThru** parameter is used, This example returns a modified CIM instance object. ```powershell $x = New-CimInstance -ClassName Win32_Environment -Property @{Name="testvar";UserName="domain\user"} -Key Name,UserName -ClientOnly @@ -411,7 +411,7 @@ By default, this cmdlet returns no output. ### Microsoft.Management.Infrastructure.CimInstance -When you use the **Passthru** parameter, this cmdlet returns the modified CIM instance object. +When you use the **PassThru** parameter, this cmdlet returns the modified CIM instance object. ## NOTES diff --git a/reference/7.4/Microsoft.PowerShell.Core/Add-History.md b/reference/7.4/Microsoft.PowerShell.Core/Add-History.md index cf3c68df767c..2199864ca462 100644 --- a/reference/7.4/Microsoft.PowerShell.Core/Add-History.md +++ b/reference/7.4/Microsoft.PowerShell.Core/Add-History.md @@ -16,7 +16,7 @@ Appends entries to the session history. ## SYNTAX ``` -Add-History [[-InputObject] ] [-Passthru] [] +Add-History [[-InputObject] ] [-PassThru] [] ``` ## DESCRIPTION @@ -138,7 +138,7 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -Passthru +### -PassThru Indicates that this cmdlet returns a **HistoryInfo** object for each history entry. By default, this cmdlet does not generate any output. diff --git a/reference/7.4/Microsoft.PowerShell.Core/Import-Module.md b/reference/7.4/Microsoft.PowerShell.Core/Import-Module.md index 88a46751b4ae..570e08a17213 100644 --- a/reference/7.4/Microsoft.PowerShell.Core/Import-Module.md +++ b/reference/7.4/Microsoft.PowerShell.Core/Import-Module.md @@ -311,7 +311,7 @@ TestCmdlets Script ``` ```powershell -$a = Import-Module -Name Show-Calendar -AsCustomObject -Passthru +$a = Import-Module -Name Show-Calendar -AsCustomObject -PassThru $a | Get-Member ``` diff --git a/reference/7.4/Microsoft.PowerShell.Security/Set-Acl.md b/reference/7.4/Microsoft.PowerShell.Security/Set-Acl.md index 319f1aaf83a0..1f67bace631d 100644 --- a/reference/7.4/Microsoft.PowerShell.Security/Set-Acl.md +++ b/reference/7.4/Microsoft.PowerShell.Security/Set-Acl.md @@ -18,21 +18,21 @@ Changes the security descriptor of a specified item, such as a file or a registr ### ByPath (Default) ``` -Set-Acl [-Path] [-AclObject] [-ClearCentralAccessPolicy] [-Passthru] [-Filter ] +Set-Acl [-Path] [-AclObject] [-ClearCentralAccessPolicy] [-PassThru] [-Filter ] [-Include ] [-Exclude ] [-WhatIf] [-Confirm] [] ``` ### ByInputObject ``` -Set-Acl [-InputObject] [-AclObject] [-Passthru] [-Filter ] [-Include ] +Set-Acl [-InputObject] [-AclObject] [-PassThru] [-Filter ] [-Include ] [-Exclude ] [-WhatIf] [-Confirm] [] ``` ### ByLiteralPath ``` -Set-Acl -LiteralPath [-AclObject] [-ClearCentralAccessPolicy] [-Passthru] +Set-Acl -LiteralPath [-AclObject] [-ClearCentralAccessPolicy] [-PassThru] [-Filter ] [-Include ] [-Exclude ] [-WhatIf] [-Confirm] [] ``` @@ -318,7 +318,7 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` -### -Passthru +### -PassThru Returns an object that represents the security descriptor that was changed. By default, this cmdlet does not generate any output. diff --git a/reference/7.4/Microsoft.PowerShell.Utility/Invoke-RestMethod.md b/reference/7.4/Microsoft.PowerShell.Utility/Invoke-RestMethod.md index 08348ea5b971..4b1d6fe0b809 100644 --- a/reference/7.4/Microsoft.PowerShell.Utility/Invoke-RestMethod.md +++ b/reference/7.4/Microsoft.PowerShell.Utility/Invoke-RestMethod.md @@ -892,7 +892,7 @@ Accept wildcard characters: False By default, `Invoke-RestMethod` returns the results to the pipeline. When you use the **OutFile** parameter, the results are saved to the specified file and not returned to the pipeline. Enter a -path and filename. To send the results to a file and to the pipeline, add the **Passthru** +path and filename. To send the results to a file and to the pipeline, add the **PassThru** parameter. If you omit the path, the default is the current location. The name is treated as a literal path. diff --git a/reference/7.4/Microsoft.PowerShell.Utility/Invoke-WebRequest.md b/reference/7.4/Microsoft.PowerShell.Utility/Invoke-WebRequest.md index 11ba7f0dd8f1..002d7621ac68 100644 --- a/reference/7.4/Microsoft.PowerShell.Utility/Invoke-WebRequest.md +++ b/reference/7.4/Microsoft.PowerShell.Utility/Invoke-WebRequest.md @@ -917,7 +917,7 @@ Accept wildcard characters: False By default, `Invoke-WebRequest` returns the results to the pipeline. When you use the **OutFile** parameter, the results are saved to the specified file and not returned to the pipeline. Enter a -path and filename. To send the results to a file and to the pipeline, add the **Passthru** +path and filename. To send the results to a file and to the pipeline, add the **PassThru** parameter. If you omit the path, the default is the current location. The name is treated as a literal path. diff --git a/reference/7.4/Microsoft.PowerShell.Utility/Out-GridView.md b/reference/7.4/Microsoft.PowerShell.Utility/Out-GridView.md index b13eb4271499..dd0c634aacd6 100644 --- a/reference/7.4/Microsoft.PowerShell.Utility/Out-GridView.md +++ b/reference/7.4/Microsoft.PowerShell.Utility/Out-GridView.md @@ -196,7 +196,7 @@ The values of this parameter determine how many items you can send down the pipe - `Single`. Zero items or one item. Use this value when the next command can take only one input object. - `Multiple`. Zero, one, or many items. Use this value when the next command can take multiple input - objects. This value is equivalent to the **Passthru** parameter. + objects. This value is equivalent to the **PassThru** parameter. This parameter was introduced in Windows PowerShell 3.0. diff --git a/reference/7.5/CimCmdlets/Set-CimInstance.md b/reference/7.5/CimCmdlets/Set-CimInstance.md index dfdc16586778..a45f6a7953d8 100644 --- a/reference/7.5/CimCmdlets/Set-CimInstance.md +++ b/reference/7.5/CimCmdlets/Set-CimInstance.md @@ -102,14 +102,14 @@ Set-CimInstance -InputObject $x -Property @{VariableValue="somevalue"} -PassThru This example retrieves the CIM instance objects filtered by the Query parameter in to a variable `$x` using `Get-CimInstance`, and then passes the contents of the variable to the `Set-CimInstance` cmdlet. `Set-CimInstance` then modifies the **VariableValue** property to **somevalue**. Because the -**Passthru** parameter is used, This example returns a modified CIM instance object. +**PassThru** parameter is used, This example returns a modified CIM instance object. ### Example 4: Set the CIM instance property This example retrieves the CIM instance object that is specified in the **Query** parameter into a variable `$x` using the `Get-CimInstance` cmdlet, and changes the **VariableValue** property value of the object to change. The CIM instance object is then saved using the `Set-CimInstance` cmdlet. -Because the **Passthru** parameter is used, This example returns a modified CIM instance object. +Because the **PassThru** parameter is used, This example returns a modified CIM instance object. ```powershell $x = Get-CimInstance -Query 'Select * from Win32_Environment where name="testvar"' @@ -140,7 +140,7 @@ Set-CimInstance -Query 'Select * from Win32_Environment where name LIKE "testvar This example creates a CIM instance with the specified properties using the `New-CimInstance` cmdlet, and retrieves its contents in to a variable `$x`. The variable is then passed to the `Set-CimInstance` cmdlet, which modifies the value of **VariableValue** property to **somevalue**. -Because the **Passthru** parameter is used, This example returns a modified CIM instance object. +Because the **PassThru** parameter is used, This example returns a modified CIM instance object. ```powershell $x = New-CimInstance -ClassName Win32_Environment -Property @{Name="testvar";UserName="domain\user"} -Key Name,UserName -ClientOnly @@ -411,7 +411,7 @@ By default, this cmdlet returns no output. ### Microsoft.Management.Infrastructure.CimInstance -When you use the **Passthru** parameter, this cmdlet returns the modified CIM instance object. +When you use the **PassThru** parameter, this cmdlet returns the modified CIM instance object. ## NOTES diff --git a/reference/7.5/Microsoft.PowerShell.Core/Add-History.md b/reference/7.5/Microsoft.PowerShell.Core/Add-History.md index 4936174c0bbd..cfc81afadb0f 100644 --- a/reference/7.5/Microsoft.PowerShell.Core/Add-History.md +++ b/reference/7.5/Microsoft.PowerShell.Core/Add-History.md @@ -16,7 +16,7 @@ Appends entries to the session history. ## SYNTAX ``` -Add-History [[-InputObject] ] [-Passthru] [] +Add-History [[-InputObject] ] [-PassThru] [] ``` ## DESCRIPTION @@ -138,7 +138,7 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -Passthru +### -PassThru Indicates that this cmdlet returns a **HistoryInfo** object for each history entry. By default, this cmdlet does not generate any output. diff --git a/reference/7.5/Microsoft.PowerShell.Core/Import-Module.md b/reference/7.5/Microsoft.PowerShell.Core/Import-Module.md index 874b59531fd6..9d87b4cd7c4b 100644 --- a/reference/7.5/Microsoft.PowerShell.Core/Import-Module.md +++ b/reference/7.5/Microsoft.PowerShell.Core/Import-Module.md @@ -311,7 +311,7 @@ TestCmdlets Script ``` ```powershell -$a = Import-Module -Name Show-Calendar -AsCustomObject -Passthru +$a = Import-Module -Name Show-Calendar -AsCustomObject -PassThru $a | Get-Member ``` diff --git a/reference/7.5/Microsoft.PowerShell.Security/Set-Acl.md b/reference/7.5/Microsoft.PowerShell.Security/Set-Acl.md index 5ca60aa42b6d..7c8f8a2bdf6b 100644 --- a/reference/7.5/Microsoft.PowerShell.Security/Set-Acl.md +++ b/reference/7.5/Microsoft.PowerShell.Security/Set-Acl.md @@ -18,21 +18,21 @@ Changes the security descriptor of a specified item, such as a file or a registr ### ByPath (Default) ``` -Set-Acl [-Path] [-AclObject] [-ClearCentralAccessPolicy] [-Passthru] [-Filter ] +Set-Acl [-Path] [-AclObject] [-ClearCentralAccessPolicy] [-PassThru] [-Filter ] [-Include ] [-Exclude ] [-WhatIf] [-Confirm] [] ``` ### ByInputObject ``` -Set-Acl [-InputObject] [-AclObject] [-Passthru] [-Filter ] [-Include ] +Set-Acl [-InputObject] [-AclObject] [-PassThru] [-Filter ] [-Include ] [-Exclude ] [-WhatIf] [-Confirm] [] ``` ### ByLiteralPath ``` -Set-Acl -LiteralPath [-AclObject] [-ClearCentralAccessPolicy] [-Passthru] +Set-Acl -LiteralPath [-AclObject] [-ClearCentralAccessPolicy] [-PassThru] [-Filter ] [-Include ] [-Exclude ] [-WhatIf] [-Confirm] [] ``` @@ -318,7 +318,7 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` -### -Passthru +### -PassThru Returns an object that represents the security descriptor that was changed. By default, this cmdlet does not generate any output. diff --git a/reference/7.5/Microsoft.PowerShell.Utility/Invoke-RestMethod.md b/reference/7.5/Microsoft.PowerShell.Utility/Invoke-RestMethod.md index bced273a9e70..5efc3687bdc6 100644 --- a/reference/7.5/Microsoft.PowerShell.Utility/Invoke-RestMethod.md +++ b/reference/7.5/Microsoft.PowerShell.Utility/Invoke-RestMethod.md @@ -892,7 +892,7 @@ Accept wildcard characters: False By default, `Invoke-RestMethod` returns the results to the pipeline. When you use the **OutFile** parameter, the results are saved to the specified file and not returned to the pipeline. Enter a -path and filename. To send the results to a file and to the pipeline, add the **Passthru** +path and filename. To send the results to a file and to the pipeline, add the **PassThru** parameter. If you omit the path, the default is the current location. The name is treated as a literal path. diff --git a/reference/7.5/Microsoft.PowerShell.Utility/Invoke-WebRequest.md b/reference/7.5/Microsoft.PowerShell.Utility/Invoke-WebRequest.md index 89bfb5addc07..89f5cc48ff24 100644 --- a/reference/7.5/Microsoft.PowerShell.Utility/Invoke-WebRequest.md +++ b/reference/7.5/Microsoft.PowerShell.Utility/Invoke-WebRequest.md @@ -917,7 +917,7 @@ Accept wildcard characters: False By default, `Invoke-WebRequest` returns the results to the pipeline. When you use the **OutFile** parameter, the results are saved to the specified file and not returned to the pipeline. Enter a -path and filename. To send the results to a file and to the pipeline, add the **Passthru** +path and filename. To send the results to a file and to the pipeline, add the **PassThru** parameter. If you omit the path, the default is the current location. The name is treated as a literal path. diff --git a/reference/7.5/Microsoft.PowerShell.Utility/Out-GridView.md b/reference/7.5/Microsoft.PowerShell.Utility/Out-GridView.md index 0d79ee5beda2..c316023af91e 100644 --- a/reference/7.5/Microsoft.PowerShell.Utility/Out-GridView.md +++ b/reference/7.5/Microsoft.PowerShell.Utility/Out-GridView.md @@ -196,7 +196,7 @@ The values of this parameter determine how many items you can send down the pipe - `Single`. Zero items or one item. Use this value when the next command can take only one input object. - `Multiple`. Zero, one, or many items. Use this value when the next command can take multiple input - objects. This value is equivalent to the **Passthru** parameter. + objects. This value is equivalent to the **PassThru** parameter. This parameter was introduced in Windows PowerShell 3.0. diff --git a/reference/docs-conceptual/samples/Manipulating-Items-Directly.md b/reference/docs-conceptual/samples/Manipulating-Items-Directly.md index 1b80078b1443..557fa6e2b41a 100644 --- a/reference/docs-conceptual/samples/Manipulating-Items-Directly.md +++ b/reference/docs-conceptual/samples/Manipulating-Items-Directly.md @@ -187,7 +187,7 @@ in the command. If you have already copied the directory without its contents, a parameter, which allows you to overwrite the empty folder. ```powershell -Copy-Item -Path C:\New.Directory -Destination C:\temp -Recurse -Force -Passthru +Copy-Item -Path C:\New.Directory -Destination C:\temp -Recurse -Force -PassThru ``` ```Output