From 209b44a3d9869048e3c905997c85f3e1bfa4527f Mon Sep 17 00:00:00 2001 From: surfingoldelephant <151538956+surfingoldelephant@users.noreply.github.com> Date: Mon, 24 Feb 2025 18:10:51 +0000 Subject: [PATCH] Fix automatic variable case --- reference/5.1/Microsoft.PowerShell.Utility/Out-File.md | 2 +- .../Microsoft.PowerShell.Utility/Register-EngineEvent.md | 2 +- .../Microsoft.PowerShell.Utility/Register-ObjectEvent.md | 4 ++-- reference/5.1/Microsoft.PowerShell.Utility/Select-Xml.md | 6 +++--- reference/5.1/Microsoft.PowerShell.Utility/Show-Command.md | 2 +- reference/5.1/Microsoft.PowerShell.Utility/Sort-Object.md | 2 +- reference/5.1/Microsoft.PowerShell.Utility/Trace-Command.md | 4 ++-- .../5.1/Microsoft.PowerShell.Utility/Update-TypeData.md | 6 +++--- reference/5.1/Microsoft.PowerShell.Utility/Wait-Event.md | 2 +- .../5.1/Microsoft.WSMan.Management/Enable-WSManCredSSP.md | 2 +- reference/7.4/Microsoft.PowerShell.Utility/Out-File.md | 2 +- .../Microsoft.PowerShell.Utility/Register-EngineEvent.md | 2 +- .../Microsoft.PowerShell.Utility/Register-ObjectEvent.md | 4 ++-- reference/7.4/Microsoft.PowerShell.Utility/Select-Xml.md | 6 +++--- reference/7.4/Microsoft.PowerShell.Utility/Show-Command.md | 2 +- reference/7.4/Microsoft.PowerShell.Utility/Sort-Object.md | 2 +- reference/7.4/Microsoft.PowerShell.Utility/Trace-Command.md | 4 ++-- .../7.4/Microsoft.PowerShell.Utility/Update-TypeData.md | 6 +++--- reference/7.4/Microsoft.PowerShell.Utility/Wait-Event.md | 2 +- .../7.4/Microsoft.WSMan.Management/Enable-WSManCredSSP.md | 2 +- reference/7.5/Microsoft.PowerShell.Utility/Out-File.md | 2 +- .../Microsoft.PowerShell.Utility/Register-EngineEvent.md | 2 +- .../Microsoft.PowerShell.Utility/Register-ObjectEvent.md | 4 ++-- reference/7.5/Microsoft.PowerShell.Utility/Select-Xml.md | 6 +++--- reference/7.5/Microsoft.PowerShell.Utility/Show-Command.md | 2 +- reference/7.5/Microsoft.PowerShell.Utility/Sort-Object.md | 2 +- reference/7.5/Microsoft.PowerShell.Utility/Trace-Command.md | 4 ++-- .../7.5/Microsoft.PowerShell.Utility/Update-TypeData.md | 6 +++--- reference/7.5/Microsoft.PowerShell.Utility/Wait-Event.md | 2 +- .../7.5/Microsoft.WSMan.Management/Enable-WSManCredSSP.md | 2 +- reference/7.6/Microsoft.PowerShell.Utility/Out-File.md | 2 +- .../Microsoft.PowerShell.Utility/Register-EngineEvent.md | 2 +- .../Microsoft.PowerShell.Utility/Register-ObjectEvent.md | 4 ++-- reference/7.6/Microsoft.PowerShell.Utility/Select-Xml.md | 6 +++--- reference/7.6/Microsoft.PowerShell.Utility/Show-Command.md | 2 +- reference/7.6/Microsoft.PowerShell.Utility/Sort-Object.md | 2 +- reference/7.6/Microsoft.PowerShell.Utility/Trace-Command.md | 4 ++-- .../7.6/Microsoft.PowerShell.Utility/Update-TypeData.md | 6 +++--- reference/7.6/Microsoft.PowerShell.Utility/Wait-Event.md | 2 +- .../7.6/Microsoft.WSMan.Management/Enable-WSManCredSSP.md | 2 +- 40 files changed, 64 insertions(+), 64 deletions(-) diff --git a/reference/5.1/Microsoft.PowerShell.Utility/Out-File.md b/reference/5.1/Microsoft.PowerShell.Utility/Out-File.md index 5d26b9d096ba..d51cae08b997 100644 --- a/reference/5.1/Microsoft.PowerShell.Utility/Out-File.md +++ b/reference/5.1/Microsoft.PowerShell.Utility/Out-File.md @@ -147,7 +147,7 @@ function DemoDefaultOutFileWidth() { try { $PSDefaultParameterValues['out-file:width'] = 2000 - $logFile = "$pwd\logfile.txt" + $logFile = "$PWD\logfile.txt" Get-ChildItem Env:\ > $logFile diff --git a/reference/5.1/Microsoft.PowerShell.Utility/Register-EngineEvent.md b/reference/5.1/Microsoft.PowerShell.Utility/Register-EngineEvent.md index 27115530b31c..d055b308e0d6 100644 --- a/reference/5.1/Microsoft.PowerShell.Utility/Register-EngineEvent.md +++ b/reference/5.1/Microsoft.PowerShell.Utility/Register-EngineEvent.md @@ -85,7 +85,7 @@ Register-EngineEvent -SourceIdentifier MyEventSource -Action { } Start-Job -Name TestJob -ScriptBlock { - While ($True) { + While ($true) { Register-EngineEvent -SourceIdentifier MyEventSource -Forward Start-Sleep -seconds 2 "Doing some work..." diff --git a/reference/5.1/Microsoft.PowerShell.Utility/Register-ObjectEvent.md b/reference/5.1/Microsoft.PowerShell.Utility/Register-ObjectEvent.md index 339cad448564..ab3b93da38ce 100644 --- a/reference/5.1/Microsoft.PowerShell.Utility/Register-ObjectEvent.md +++ b/reference/5.1/Microsoft.PowerShell.Utility/Register-ObjectEvent.md @@ -106,7 +106,7 @@ function Enable-ProcessCreationEvent { EventName = 'EventArrived' SourceIdentifier = 'WMI.ProcessCreated' MessageData = 'Test' - Forward = $True + Forward = $true } Register-ObjectEvent @objectEventArgs } @@ -141,7 +141,7 @@ variable. ```powershell $Timer = New-Object Timers.Timer $Timer.Interval = 500 -$Timer.Enabled = $True +$Timer.Enabled = $true $objectEventArgs = @{ InputObject = $Timer EventName = 'Elapsed' diff --git a/reference/5.1/Microsoft.PowerShell.Utility/Select-Xml.md b/reference/5.1/Microsoft.PowerShell.Utility/Select-Xml.md index d3584459e6d0..eeeec2885ccc 100644 --- a/reference/5.1/Microsoft.PowerShell.Utility/Select-Xml.md +++ b/reference/5.1/Microsoft.PowerShell.Utility/Select-Xml.md @@ -61,7 +61,7 @@ the XPath statement from the `Types.ps1xml` file. The command uses a pipeline op **Node** object and returns its **Name** and **ReferencedMemberName** properties. ```powershell -$Path = "$Pshome\Types.ps1xml" +$Path = "$PSHOME\Types.ps1xml" $XPath = "/Types/Type/Members/AliasProperty" Select-Xml -Path $Path -XPath $Xpath | Select-Object -ExpandProperty Node ``` @@ -103,7 +103,7 @@ the **Xml** parameter to specify the XML content in the `$Types` variable and th parameter to specify the path to the **MethodName** node. ```powershell -[xml]$Types = Get-Content $Pshome\Types.ps1xml +[xml]$Types = Get-Content $PSHOME\Types.ps1xml Select-Xml -Xml $Types -XPath "//MethodName" ``` @@ -138,7 +138,7 @@ $Namespace = @{ dev = "http://schemas.microsoft.com/maml/dev/2004/10" } -$Path = "$Pshome\en-us\*dll-Help.xml" +$Path = "$PSHOME\en-us\*dll-Help.xml" $Xml = Select-Xml -Path $Path -Namespace $Namespace -XPath "//command:name" $Xml | Format-Table @{Label="Name"; Expression= {($_.node.innerxml).trim()}}, Path -AutoSize ``` diff --git a/reference/5.1/Microsoft.PowerShell.Utility/Show-Command.md b/reference/5.1/Microsoft.PowerShell.Utility/Show-Command.md index a5151e8faebe..2daac3591c2a 100644 --- a/reference/5.1/Microsoft.PowerShell.Utility/Show-Command.md +++ b/reference/5.1/Microsoft.PowerShell.Utility/Show-Command.md @@ -95,7 +95,7 @@ the **Height**, **Width**, and **ErrorPopup** parameters of the `Show-Command` c $PSDefaultParameterValues = @{ "Show-Command:Height" = 700 "Show-Command:Width" = 1000 - "Show-Command:ErrorPopup" = $True + "Show-Command:ErrorPopup" = $true } ``` diff --git a/reference/5.1/Microsoft.PowerShell.Utility/Sort-Object.md b/reference/5.1/Microsoft.PowerShell.Utility/Sort-Object.md index 4624edb0a90a..98bb1459663f 100644 --- a/reference/5.1/Microsoft.PowerShell.Utility/Sort-Object.md +++ b/reference/5.1/Microsoft.PowerShell.Utility/Sort-Object.md @@ -190,7 +190,7 @@ hash table to specify the property names and sort orders. The **Property** param two properties, **Status** in descending order and **DisplayName** in ascending order. **Status** is an enumerated property. **Stopped** has a value of **1** and **Running** has a value -of **4**. The **Descending** parameter is set to `$True` so that **Running** processes are displayed +of **4**. The **Descending** parameter is set to `$true` so that **Running** processes are displayed before **Stopped** processes. **DisplayName** sets the **Descending** parameter to `$false` to sort the display names in alphabetical order. diff --git a/reference/5.1/Microsoft.PowerShell.Utility/Trace-Command.md b/reference/5.1/Microsoft.PowerShell.Utility/Trace-Command.md index 5e8f2dc62e25..7cf54af8e81c 100644 --- a/reference/5.1/Microsoft.PowerShell.Utility/Trace-Command.md +++ b/reference/5.1/Microsoft.PowerShell.Utility/Trace-Command.md @@ -61,7 +61,7 @@ processes a `Get-Alias` expression that takes input from the pipeline. ```powershell $A = "i*" -Trace-Command ParameterBinding {Get-Alias $Input} -PSHost -InputObject $A +Trace-Command ParameterBinding {Get-Alias $input} -PSHost -InputObject $A ``` In `Trace-Command`, the **InputObject** parameter passes an object to the expression that's being @@ -71,7 +71,7 @@ The first command stores the string `i*` in the `$A` variable. The second comman `Trace-Command` cmdlet with the ParameterBinding trace source. The **PSHost** parameter sends the output to the console. -The expression being processed is `Get-Alias $Input`, where the `$Input` variable is associated with +The expression being processed is `Get-Alias $input`, where the `$input` variable is associated with the **InputObject** parameter. The **InputObject** parameter passes the variable `$A` to the expression. In effect, the command being processed during the trace is `Get-Alias -InputObject $A" or "$A | Get-Alias`. diff --git a/reference/5.1/Microsoft.PowerShell.Utility/Update-TypeData.md b/reference/5.1/Microsoft.PowerShell.Utility/Update-TypeData.md index 36c64789ee6a..77110bf71fe6 100644 --- a/reference/5.1/Microsoft.PowerShell.Utility/Update-TypeData.md +++ b/reference/5.1/Microsoft.PowerShell.Utility/Update-TypeData.md @@ -492,11 +492,11 @@ Accept wildcard characters: False ### -InheritPropertySerializationSet Indicates whether the set of properties that are serialized is inherited. The default value is -`$Null`. The acceptable values for this parameter are: +`$null`. The acceptable values for this parameter are: -- `$True`. The property set is inherited. +- `$true`. The property set is inherited. - `$false`. The property set is not inherited. -- `$Null`. Inheritance is not defined. +- `$null`. Inheritance is not defined. This parameter is valid only when the value of the **SerializationMethod** parameter is `SpecificProperties`. When the value of this parameter is `$false`, the **PropertySerializationSet** diff --git a/reference/5.1/Microsoft.PowerShell.Utility/Wait-Event.md b/reference/5.1/Microsoft.PowerShell.Utility/Wait-Event.md index 13a7284d1fe0..5a779e121df2 100644 --- a/reference/5.1/Microsoft.PowerShell.Utility/Wait-Event.md +++ b/reference/5.1/Microsoft.PowerShell.Utility/Wait-Event.md @@ -63,7 +63,7 @@ $objectEventArgs = @{ Register-ObjectEvent @objectEventArgs $Timer.Interval = 2000 $Timer.Autoreset = $false -$Timer.Enabled = $True +$Timer.Enabled = $true Wait-Event Timer.Elapsed ``` diff --git a/reference/5.1/Microsoft.WSMan.Management/Enable-WSManCredSSP.md b/reference/5.1/Microsoft.WSMan.Management/Enable-WSManCredSSP.md index a6d3c862d85e..2e58689a3a2c 100644 --- a/reference/5.1/Microsoft.WSMan.Management/Enable-WSManCredSSP.md +++ b/reference/5.1/Microsoft.WSMan.Management/Enable-WSManCredSSP.md @@ -133,7 +133,7 @@ the WSMan provider must be set to true. ```powershell Connect-WSMan -ComputerName "server02" -Set-Item -Path "WSMan:\server02\service\auth\credSSP" -Value $True +Set-Item -Path "WSMan:\server02\service\auth\credSSP" -Value $true ``` `Connect-WSMan` creates a connection to the remote computer, server02. `Set-Item` uses the **Path** diff --git a/reference/7.4/Microsoft.PowerShell.Utility/Out-File.md b/reference/7.4/Microsoft.PowerShell.Utility/Out-File.md index 6d32c6102398..03d43c9099ca 100644 --- a/reference/7.4/Microsoft.PowerShell.Utility/Out-File.md +++ b/reference/7.4/Microsoft.PowerShell.Utility/Out-File.md @@ -150,7 +150,7 @@ function DemoDefaultOutFileWidth() { try { $PSDefaultParameterValues['out-file:width'] = 2000 - $logFile = "$pwd\logfile.txt" + $logFile = "$PWD\logfile.txt" Get-ChildItem Env:\ > $logFile diff --git a/reference/7.4/Microsoft.PowerShell.Utility/Register-EngineEvent.md b/reference/7.4/Microsoft.PowerShell.Utility/Register-EngineEvent.md index b5494d928904..634c2acf0ec9 100644 --- a/reference/7.4/Microsoft.PowerShell.Utility/Register-EngineEvent.md +++ b/reference/7.4/Microsoft.PowerShell.Utility/Register-EngineEvent.md @@ -85,7 +85,7 @@ Register-EngineEvent -SourceIdentifier MyEventSource -Action { } Start-Job -Name TestJob -ScriptBlock { - While ($True) { + While ($true) { Register-EngineEvent -SourceIdentifier MyEventSource -Forward Start-Sleep -seconds 2 "Doing some work..." diff --git a/reference/7.4/Microsoft.PowerShell.Utility/Register-ObjectEvent.md b/reference/7.4/Microsoft.PowerShell.Utility/Register-ObjectEvent.md index 6a85dec22c18..c9d1675e71e2 100644 --- a/reference/7.4/Microsoft.PowerShell.Utility/Register-ObjectEvent.md +++ b/reference/7.4/Microsoft.PowerShell.Utility/Register-ObjectEvent.md @@ -106,7 +106,7 @@ function Enable-ProcessCreationEvent { EventName = 'EventArrived' SourceIdentifier = 'WMI.ProcessCreated' MessageData = 'Test' - Forward = $True + Forward = $true } Register-ObjectEvent @objectEventArgs } @@ -141,7 +141,7 @@ variable. ```powershell $Timer = New-Object Timers.Timer $Timer.Interval = 500 -$Timer.Enabled = $True +$Timer.Enabled = $true $objectEventArgs = @{ InputObject = $Timer EventName = 'Elapsed' diff --git a/reference/7.4/Microsoft.PowerShell.Utility/Select-Xml.md b/reference/7.4/Microsoft.PowerShell.Utility/Select-Xml.md index 41a20d0a9b4d..34a1fc377fb7 100644 --- a/reference/7.4/Microsoft.PowerShell.Utility/Select-Xml.md +++ b/reference/7.4/Microsoft.PowerShell.Utility/Select-Xml.md @@ -61,7 +61,7 @@ the XPath statement from the `Types.ps1xml` file. The command uses a pipeline op **Node** object and returns its **Name** and **ReferencedMemberName** properties. ```powershell -$Path = "$Pshome\Types.ps1xml" +$Path = "$PSHOME\Types.ps1xml" $XPath = "/Types/Type/Members/AliasProperty" Select-Xml -Path $Path -XPath $Xpath | Select-Object -ExpandProperty Node ``` @@ -103,7 +103,7 @@ the **Xml** parameter to specify the XML content in the `$Types` variable and th parameter to specify the path to the **MethodName** node. ```powershell -[xml]$Types = Get-Content $Pshome\Types.ps1xml +[xml]$Types = Get-Content $PSHOME\Types.ps1xml Select-Xml -Xml $Types -XPath "//MethodName" ``` @@ -138,7 +138,7 @@ $Namespace = @{ dev = "http://schemas.microsoft.com/maml/dev/2004/10" } -$Path = "$Pshome\en-us\*dll-Help.xml" +$Path = "$PSHOME\en-us\*dll-Help.xml" $Xml = Select-Xml -Path $Path -Namespace $Namespace -XPath "//command:name" $Xml | Format-Table @{Label="Name"; Expression= {($_.node.innerxml).trim()}}, Path -AutoSize ``` diff --git a/reference/7.4/Microsoft.PowerShell.Utility/Show-Command.md b/reference/7.4/Microsoft.PowerShell.Utility/Show-Command.md index c30a5d859ad5..161fd91d439b 100644 --- a/reference/7.4/Microsoft.PowerShell.Utility/Show-Command.md +++ b/reference/7.4/Microsoft.PowerShell.Utility/Show-Command.md @@ -97,7 +97,7 @@ the **Height**, **Width**, and **ErrorPopup** parameters of the `Show-Command` c $PSDefaultParameterValues = @{ "Show-Command:Height" = 700 "Show-Command:Width" = 1000 - "Show-Command:ErrorPopup" = $True + "Show-Command:ErrorPopup" = $true } ``` diff --git a/reference/7.4/Microsoft.PowerShell.Utility/Sort-Object.md b/reference/7.4/Microsoft.PowerShell.Utility/Sort-Object.md index 15df9648e1b6..b9233f485669 100644 --- a/reference/7.4/Microsoft.PowerShell.Utility/Sort-Object.md +++ b/reference/7.4/Microsoft.PowerShell.Utility/Sort-Object.md @@ -208,7 +208,7 @@ hash table to specify the property names and sort orders. The **Property** param two properties, **Status** in descending order and **DisplayName** in ascending order. **Status** is an enumerated property. **Stopped** has a value of **1** and **Running** has a value -of **4**. The **Descending** parameter is set to `$True` so that **Running** processes are displayed +of **4**. The **Descending** parameter is set to `$true` so that **Running** processes are displayed before **Stopped** processes. **DisplayName** sets the **Descending** parameter to `$false` to sort the display names in alphabetical order. diff --git a/reference/7.4/Microsoft.PowerShell.Utility/Trace-Command.md b/reference/7.4/Microsoft.PowerShell.Utility/Trace-Command.md index d3bdf64a8a08..0a707cc3ecd3 100644 --- a/reference/7.4/Microsoft.PowerShell.Utility/Trace-Command.md +++ b/reference/7.4/Microsoft.PowerShell.Utility/Trace-Command.md @@ -61,7 +61,7 @@ processes a `Get-Alias` expression that takes input from the pipeline. ```powershell $A = "i*" -Trace-Command ParameterBinding {Get-Alias $Input} -PSHost -InputObject $A +Trace-Command ParameterBinding {Get-Alias $input} -PSHost -InputObject $A ``` In `Trace-Command`, the **InputObject** parameter passes an object to the expression that's being @@ -71,7 +71,7 @@ The first command stores the string `i*` in the `$A` variable. The second comman `Trace-Command` cmdlet with the ParameterBinding trace source. The **PSHost** parameter sends the output to the console. -The expression being processed is `Get-Alias $Input`, where the `$Input` variable is associated with +The expression being processed is `Get-Alias $input`, where the `$input` variable is associated with the **InputObject** parameter. The **InputObject** parameter passes the variable `$A` to the expression. In effect, the command being processed during the trace is `Get-Alias -InputObject $A" or "$A | Get-Alias`. diff --git a/reference/7.4/Microsoft.PowerShell.Utility/Update-TypeData.md b/reference/7.4/Microsoft.PowerShell.Utility/Update-TypeData.md index bc187937810a..0c2308ce94d2 100644 --- a/reference/7.4/Microsoft.PowerShell.Utility/Update-TypeData.md +++ b/reference/7.4/Microsoft.PowerShell.Utility/Update-TypeData.md @@ -500,11 +500,11 @@ Accept wildcard characters: False ### -InheritPropertySerializationSet Indicates whether the set of properties that are serialized is inherited. The default value is -`$Null`. The acceptable values for this parameter are: +`$null`. The acceptable values for this parameter are: -- `$True`. The property set is inherited. +- `$true`. The property set is inherited. - `$false`. The property set is not inherited. -- `$Null`. Inheritance is not defined. +- `$null`. Inheritance is not defined. This parameter is valid only when the value of the **SerializationMethod** parameter is `SpecificProperties`. When the value of this parameter is `$false`, the **PropertySerializationSet** diff --git a/reference/7.4/Microsoft.PowerShell.Utility/Wait-Event.md b/reference/7.4/Microsoft.PowerShell.Utility/Wait-Event.md index 3a13c94b6e7f..5027020f1bf2 100644 --- a/reference/7.4/Microsoft.PowerShell.Utility/Wait-Event.md +++ b/reference/7.4/Microsoft.PowerShell.Utility/Wait-Event.md @@ -63,7 +63,7 @@ $objectEventArgs = @{ Register-ObjectEvent @objectEventArgs $Timer.Interval = 2000 $Timer.Autoreset = $false -$Timer.Enabled = $True +$Timer.Enabled = $true Wait-Event Timer.Elapsed ``` diff --git a/reference/7.4/Microsoft.WSMan.Management/Enable-WSManCredSSP.md b/reference/7.4/Microsoft.WSMan.Management/Enable-WSManCredSSP.md index d27246738703..50dc123dfe1c 100644 --- a/reference/7.4/Microsoft.WSMan.Management/Enable-WSManCredSSP.md +++ b/reference/7.4/Microsoft.WSMan.Management/Enable-WSManCredSSP.md @@ -135,7 +135,7 @@ the WSMan provider must be set to true. ```powershell Connect-WSMan -ComputerName "server02" -Set-Item -Path "WSMan:\server02\service\auth\credSSP" -Value $True +Set-Item -Path "WSMan:\server02\service\auth\credSSP" -Value $true ``` `Connect-WSMan` creates a connection to the remote computer, server02. `Set-Item` uses the **Path** diff --git a/reference/7.5/Microsoft.PowerShell.Utility/Out-File.md b/reference/7.5/Microsoft.PowerShell.Utility/Out-File.md index 982484549617..723a8e299566 100644 --- a/reference/7.5/Microsoft.PowerShell.Utility/Out-File.md +++ b/reference/7.5/Microsoft.PowerShell.Utility/Out-File.md @@ -150,7 +150,7 @@ function DemoDefaultOutFileWidth() { try { $PSDefaultParameterValues['out-file:width'] = 2000 - $logFile = "$pwd\logfile.txt" + $logFile = "$PWD\logfile.txt" Get-ChildItem Env:\ > $logFile diff --git a/reference/7.5/Microsoft.PowerShell.Utility/Register-EngineEvent.md b/reference/7.5/Microsoft.PowerShell.Utility/Register-EngineEvent.md index de8cb7653af1..7678c40df3df 100644 --- a/reference/7.5/Microsoft.PowerShell.Utility/Register-EngineEvent.md +++ b/reference/7.5/Microsoft.PowerShell.Utility/Register-EngineEvent.md @@ -85,7 +85,7 @@ Register-EngineEvent -SourceIdentifier MyEventSource -Action { } Start-Job -Name TestJob -ScriptBlock { - While ($True) { + While ($true) { Register-EngineEvent -SourceIdentifier MyEventSource -Forward Start-Sleep -seconds 2 "Doing some work..." diff --git a/reference/7.5/Microsoft.PowerShell.Utility/Register-ObjectEvent.md b/reference/7.5/Microsoft.PowerShell.Utility/Register-ObjectEvent.md index f8ff8d90659c..957c468bbc79 100644 --- a/reference/7.5/Microsoft.PowerShell.Utility/Register-ObjectEvent.md +++ b/reference/7.5/Microsoft.PowerShell.Utility/Register-ObjectEvent.md @@ -106,7 +106,7 @@ function Enable-ProcessCreationEvent { EventName = 'EventArrived' SourceIdentifier = 'WMI.ProcessCreated' MessageData = 'Test' - Forward = $True + Forward = $true } Register-ObjectEvent @objectEventArgs } @@ -141,7 +141,7 @@ variable. ```powershell $Timer = New-Object Timers.Timer $Timer.Interval = 500 -$Timer.Enabled = $True +$Timer.Enabled = $true $objectEventArgs = @{ InputObject = $Timer EventName = 'Elapsed' diff --git a/reference/7.5/Microsoft.PowerShell.Utility/Select-Xml.md b/reference/7.5/Microsoft.PowerShell.Utility/Select-Xml.md index a9b97e5ee751..a441f062bdfe 100644 --- a/reference/7.5/Microsoft.PowerShell.Utility/Select-Xml.md +++ b/reference/7.5/Microsoft.PowerShell.Utility/Select-Xml.md @@ -61,7 +61,7 @@ the XPath statement from the `Types.ps1xml` file. The command uses a pipeline op **Node** object and returns its **Name** and **ReferencedMemberName** properties. ```powershell -$Path = "$Pshome\Types.ps1xml" +$Path = "$PSHOME\Types.ps1xml" $XPath = "/Types/Type/Members/AliasProperty" Select-Xml -Path $Path -XPath $Xpath | Select-Object -ExpandProperty Node ``` @@ -103,7 +103,7 @@ the **Xml** parameter to specify the XML content in the `$Types` variable and th parameter to specify the path to the **MethodName** node. ```powershell -[xml]$Types = Get-Content $Pshome\Types.ps1xml +[xml]$Types = Get-Content $PSHOME\Types.ps1xml Select-Xml -Xml $Types -XPath "//MethodName" ``` @@ -138,7 +138,7 @@ $Namespace = @{ dev = "http://schemas.microsoft.com/maml/dev/2004/10" } -$Path = "$Pshome\en-us\*dll-Help.xml" +$Path = "$PSHOME\en-us\*dll-Help.xml" $Xml = Select-Xml -Path $Path -Namespace $Namespace -XPath "//command:name" $Xml | Format-Table @{Label="Name"; Expression= {($_.Node.InnerXml).trim()}}, Path -AutoSize ``` diff --git a/reference/7.5/Microsoft.PowerShell.Utility/Show-Command.md b/reference/7.5/Microsoft.PowerShell.Utility/Show-Command.md index 29609e3d1144..02750da6f88a 100644 --- a/reference/7.5/Microsoft.PowerShell.Utility/Show-Command.md +++ b/reference/7.5/Microsoft.PowerShell.Utility/Show-Command.md @@ -97,7 +97,7 @@ the **Height**, **Width**, and **ErrorPopup** parameters of the `Show-Command` c $PSDefaultParameterValues = @{ "Show-Command:Height" = 700 "Show-Command:Width" = 1000 - "Show-Command:ErrorPopup" = $True + "Show-Command:ErrorPopup" = $true } ``` diff --git a/reference/7.5/Microsoft.PowerShell.Utility/Sort-Object.md b/reference/7.5/Microsoft.PowerShell.Utility/Sort-Object.md index 6f13d7c46b23..55636d4976b4 100644 --- a/reference/7.5/Microsoft.PowerShell.Utility/Sort-Object.md +++ b/reference/7.5/Microsoft.PowerShell.Utility/Sort-Object.md @@ -208,7 +208,7 @@ hash table to specify the property names and sort orders. The **Property** param two properties, **Status** in descending order and **DisplayName** in ascending order. **Status** is an enumerated property. **Stopped** has a value of **1** and **Running** has a value -of **4**. The **Descending** parameter is set to `$True` so that **Running** processes are displayed +of **4**. The **Descending** parameter is set to `$true` so that **Running** processes are displayed before **Stopped** processes. **DisplayName** sets the **Descending** parameter to `$false` to sort the display names in alphabetical order. diff --git a/reference/7.5/Microsoft.PowerShell.Utility/Trace-Command.md b/reference/7.5/Microsoft.PowerShell.Utility/Trace-Command.md index 46e3940552f4..651377f550ec 100644 --- a/reference/7.5/Microsoft.PowerShell.Utility/Trace-Command.md +++ b/reference/7.5/Microsoft.PowerShell.Utility/Trace-Command.md @@ -61,7 +61,7 @@ processes a `Get-Alias` expression that takes input from the pipeline. ```powershell $A = "i*" -Trace-Command ParameterBinding {Get-Alias $Input} -PSHost -InputObject $A +Trace-Command ParameterBinding {Get-Alias $input} -PSHost -InputObject $A ``` In `Trace-Command`, the **InputObject** parameter passes an object to the expression that's being @@ -71,7 +71,7 @@ The first command stores the string `i*` in the `$A` variable. The second comman `Trace-Command` cmdlet with the ParameterBinding trace source. The **PSHost** parameter sends the output to the console. -The expression being processed is `Get-Alias $Input`, where the `$Input` variable is associated with +The expression being processed is `Get-Alias $input`, where the `$input` variable is associated with the **InputObject** parameter. The **InputObject** parameter passes the variable `$A` to the expression. In effect, the command being processed during the trace is `Get-Alias -InputObject $A" or "$A | Get-Alias`. diff --git a/reference/7.5/Microsoft.PowerShell.Utility/Update-TypeData.md b/reference/7.5/Microsoft.PowerShell.Utility/Update-TypeData.md index 289121810f4d..3dedb8383674 100644 --- a/reference/7.5/Microsoft.PowerShell.Utility/Update-TypeData.md +++ b/reference/7.5/Microsoft.PowerShell.Utility/Update-TypeData.md @@ -500,11 +500,11 @@ Accept wildcard characters: False ### -InheritPropertySerializationSet Indicates whether the set of properties that are serialized is inherited. The default value is -`$Null`. The acceptable values for this parameter are: +`$null`. The acceptable values for this parameter are: -- `$True`. The property set is inherited. +- `$true`. The property set is inherited. - `$false`. The property set is not inherited. -- `$Null`. Inheritance is not defined. +- `$null`. Inheritance is not defined. This parameter is valid only when the value of the **SerializationMethod** parameter is `SpecificProperties`. When the value of this parameter is `$false`, the **PropertySerializationSet** diff --git a/reference/7.5/Microsoft.PowerShell.Utility/Wait-Event.md b/reference/7.5/Microsoft.PowerShell.Utility/Wait-Event.md index 2ef50d33707a..45890cebbda1 100644 --- a/reference/7.5/Microsoft.PowerShell.Utility/Wait-Event.md +++ b/reference/7.5/Microsoft.PowerShell.Utility/Wait-Event.md @@ -63,7 +63,7 @@ $objectEventArgs = @{ Register-ObjectEvent @objectEventArgs $Timer.Interval = 2000 $Timer.AutoReset = $false -$Timer.Enabled = $True +$Timer.Enabled = $true Wait-Event Timer.Elapsed ``` diff --git a/reference/7.5/Microsoft.WSMan.Management/Enable-WSManCredSSP.md b/reference/7.5/Microsoft.WSMan.Management/Enable-WSManCredSSP.md index cfb0d1d743f3..c52c646b3fd2 100644 --- a/reference/7.5/Microsoft.WSMan.Management/Enable-WSManCredSSP.md +++ b/reference/7.5/Microsoft.WSMan.Management/Enable-WSManCredSSP.md @@ -135,7 +135,7 @@ the WSMan provider must be set to true. ```powershell Connect-WSMan -ComputerName "server02" -Set-Item -Path "WSMan:\server02\service\auth\credSSP" -Value $True +Set-Item -Path "WSMan:\server02\service\auth\credSSP" -Value $true ``` `Connect-WSMan` creates a connection to the remote computer, server02. `Set-Item` uses the **Path** diff --git a/reference/7.6/Microsoft.PowerShell.Utility/Out-File.md b/reference/7.6/Microsoft.PowerShell.Utility/Out-File.md index 462e4c33aba3..ed074cb23309 100644 --- a/reference/7.6/Microsoft.PowerShell.Utility/Out-File.md +++ b/reference/7.6/Microsoft.PowerShell.Utility/Out-File.md @@ -150,7 +150,7 @@ function DemoDefaultOutFileWidth() { try { $PSDefaultParameterValues['out-file:width'] = 2000 - $logFile = "$pwd\logfile.txt" + $logFile = "$PWD\logfile.txt" Get-ChildItem Env:\ > $logFile diff --git a/reference/7.6/Microsoft.PowerShell.Utility/Register-EngineEvent.md b/reference/7.6/Microsoft.PowerShell.Utility/Register-EngineEvent.md index a496520bc10c..02b46da862b3 100644 --- a/reference/7.6/Microsoft.PowerShell.Utility/Register-EngineEvent.md +++ b/reference/7.6/Microsoft.PowerShell.Utility/Register-EngineEvent.md @@ -85,7 +85,7 @@ Register-EngineEvent -SourceIdentifier MyEventSource -Action { } Start-Job -Name TestJob -ScriptBlock { - While ($True) { + While ($true) { Register-EngineEvent -SourceIdentifier MyEventSource -Forward Start-Sleep -seconds 2 "Doing some work..." diff --git a/reference/7.6/Microsoft.PowerShell.Utility/Register-ObjectEvent.md b/reference/7.6/Microsoft.PowerShell.Utility/Register-ObjectEvent.md index 32ef5d7725a5..0890fba88cb7 100644 --- a/reference/7.6/Microsoft.PowerShell.Utility/Register-ObjectEvent.md +++ b/reference/7.6/Microsoft.PowerShell.Utility/Register-ObjectEvent.md @@ -106,7 +106,7 @@ function Enable-ProcessCreationEvent { EventName = 'EventArrived' SourceIdentifier = 'WMI.ProcessCreated' MessageData = 'Test' - Forward = $True + Forward = $true } Register-ObjectEvent @objectEventArgs } @@ -141,7 +141,7 @@ variable. ```powershell $Timer = New-Object Timers.Timer $Timer.Interval = 500 -$Timer.Enabled = $True +$Timer.Enabled = $true $objectEventArgs = @{ InputObject = $Timer EventName = 'Elapsed' diff --git a/reference/7.6/Microsoft.PowerShell.Utility/Select-Xml.md b/reference/7.6/Microsoft.PowerShell.Utility/Select-Xml.md index 8082dd1a318a..100e6a06e499 100644 --- a/reference/7.6/Microsoft.PowerShell.Utility/Select-Xml.md +++ b/reference/7.6/Microsoft.PowerShell.Utility/Select-Xml.md @@ -61,7 +61,7 @@ the XPath statement from the `Types.ps1xml` file. The command uses a pipeline op **Node** object and returns its **Name** and **ReferencedMemberName** properties. ```powershell -$Path = "$Pshome\Types.ps1xml" +$Path = "$PSHOME\Types.ps1xml" $XPath = "/Types/Type/Members/AliasProperty" Select-Xml -Path $Path -XPath $Xpath | Select-Object -ExpandProperty Node ``` @@ -103,7 +103,7 @@ the **Xml** parameter to specify the XML content in the `$Types` variable and th parameter to specify the path to the **MethodName** node. ```powershell -[xml]$Types = Get-Content $Pshome\Types.ps1xml +[xml]$Types = Get-Content $PSHOME\Types.ps1xml Select-Xml -Xml $Types -XPath "//MethodName" ``` @@ -138,7 +138,7 @@ $Namespace = @{ dev = "http://schemas.microsoft.com/maml/dev/2004/10" } -$Path = "$Pshome\en-us\*dll-Help.xml" +$Path = "$PSHOME\en-us\*dll-Help.xml" $Xml = Select-Xml -Path $Path -Namespace $Namespace -XPath "//command:name" $Xml | Format-Table @{Label="Name"; Expression= {($_.Node.InnerXml).trim()}}, Path -AutoSize ``` diff --git a/reference/7.6/Microsoft.PowerShell.Utility/Show-Command.md b/reference/7.6/Microsoft.PowerShell.Utility/Show-Command.md index 2ca0e946672f..e4cddabb70b9 100644 --- a/reference/7.6/Microsoft.PowerShell.Utility/Show-Command.md +++ b/reference/7.6/Microsoft.PowerShell.Utility/Show-Command.md @@ -97,7 +97,7 @@ the **Height**, **Width**, and **ErrorPopup** parameters of the `Show-Command` c $PSDefaultParameterValues = @{ "Show-Command:Height" = 700 "Show-Command:Width" = 1000 - "Show-Command:ErrorPopup" = $True + "Show-Command:ErrorPopup" = $true } ``` diff --git a/reference/7.6/Microsoft.PowerShell.Utility/Sort-Object.md b/reference/7.6/Microsoft.PowerShell.Utility/Sort-Object.md index e81be4d554f8..05ed1fadb42b 100644 --- a/reference/7.6/Microsoft.PowerShell.Utility/Sort-Object.md +++ b/reference/7.6/Microsoft.PowerShell.Utility/Sort-Object.md @@ -208,7 +208,7 @@ hash table to specify the property names and sort orders. The **Property** param two properties, **Status** in descending order and **DisplayName** in ascending order. **Status** is an enumerated property. **Stopped** has a value of **1** and **Running** has a value -of **4**. The **Descending** parameter is set to `$True` so that **Running** processes are displayed +of **4**. The **Descending** parameter is set to `$true` so that **Running** processes are displayed before **Stopped** processes. **DisplayName** sets the **Descending** parameter to `$false` to sort the display names in alphabetical order. diff --git a/reference/7.6/Microsoft.PowerShell.Utility/Trace-Command.md b/reference/7.6/Microsoft.PowerShell.Utility/Trace-Command.md index a30e5fc18655..bc45479b680d 100644 --- a/reference/7.6/Microsoft.PowerShell.Utility/Trace-Command.md +++ b/reference/7.6/Microsoft.PowerShell.Utility/Trace-Command.md @@ -61,7 +61,7 @@ processes a `Get-Alias` expression that takes input from the pipeline. ```powershell $A = "i*" -Trace-Command ParameterBinding {Get-Alias $Input} -PSHost -InputObject $A +Trace-Command ParameterBinding {Get-Alias $input} -PSHost -InputObject $A ``` In `Trace-Command`, the **InputObject** parameter passes an object to the expression that's being @@ -71,7 +71,7 @@ The first command stores the string `i*` in the `$A` variable. The second comman `Trace-Command` cmdlet with the ParameterBinding trace source. The **PSHost** parameter sends the output to the console. -The expression being processed is `Get-Alias $Input`, where the `$Input` variable is associated with +The expression being processed is `Get-Alias $input`, where the `$input` variable is associated with the **InputObject** parameter. The **InputObject** parameter passes the variable `$A` to the expression. In effect, the command being processed during the trace is `Get-Alias -InputObject $A" or "$A | Get-Alias`. diff --git a/reference/7.6/Microsoft.PowerShell.Utility/Update-TypeData.md b/reference/7.6/Microsoft.PowerShell.Utility/Update-TypeData.md index a72c4a34f20c..e74d52860bb6 100644 --- a/reference/7.6/Microsoft.PowerShell.Utility/Update-TypeData.md +++ b/reference/7.6/Microsoft.PowerShell.Utility/Update-TypeData.md @@ -500,11 +500,11 @@ Accept wildcard characters: False ### -InheritPropertySerializationSet Indicates whether the set of properties that are serialized is inherited. The default value is -`$Null`. The acceptable values for this parameter are: +`$null`. The acceptable values for this parameter are: -- `$True`. The property set is inherited. +- `$true`. The property set is inherited. - `$false`. The property set is not inherited. -- `$Null`. Inheritance is not defined. +- `$null`. Inheritance is not defined. This parameter is valid only when the value of the **SerializationMethod** parameter is `SpecificProperties`. When the value of this parameter is `$false`, the **PropertySerializationSet** diff --git a/reference/7.6/Microsoft.PowerShell.Utility/Wait-Event.md b/reference/7.6/Microsoft.PowerShell.Utility/Wait-Event.md index ffb3dce86fa2..12c8b208bd36 100644 --- a/reference/7.6/Microsoft.PowerShell.Utility/Wait-Event.md +++ b/reference/7.6/Microsoft.PowerShell.Utility/Wait-Event.md @@ -63,7 +63,7 @@ $objectEventArgs = @{ Register-ObjectEvent @objectEventArgs $Timer.Interval = 2000 $Timer.AutoReset = $false -$Timer.Enabled = $True +$Timer.Enabled = $true Wait-Event Timer.Elapsed ``` diff --git a/reference/7.6/Microsoft.WSMan.Management/Enable-WSManCredSSP.md b/reference/7.6/Microsoft.WSMan.Management/Enable-WSManCredSSP.md index 630bba45b865..adfdd94f664d 100644 --- a/reference/7.6/Microsoft.WSMan.Management/Enable-WSManCredSSP.md +++ b/reference/7.6/Microsoft.WSMan.Management/Enable-WSManCredSSP.md @@ -135,7 +135,7 @@ the WSMan provider must be set to true. ```powershell Connect-WSMan -ComputerName "server02" -Set-Item -Path "WSMan:\server02\service\auth\credSSP" -Value $True +Set-Item -Path "WSMan:\server02\service\auth\credSSP" -Value $true ``` `Connect-WSMan` creates a connection to the remote computer, server02. `Set-Item` uses the **Path**