Skip to content

Commit bff8b2c

Browse files
Fix automatic variable case (#11836)
1 parent 514b918 commit bff8b2c

40 files changed

+64
-64
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function DemoDefaultOutFileWidth() {
147147
try {
148148
$PSDefaultParameterValues['out-file:width'] = 2000
149149
150-
$logFile = "$pwd\logfile.txt"
150+
$logFile = "$PWD\logfile.txt"
151151
152152
Get-ChildItem Env:\ > $logFile
153153

reference/5.1/Microsoft.PowerShell.Utility/Register-EngineEvent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Register-EngineEvent -SourceIdentifier MyEventSource -Action {
8585
}
8686
8787
Start-Job -Name TestJob -ScriptBlock {
88-
While ($True) {
88+
While ($true) {
8989
Register-EngineEvent -SourceIdentifier MyEventSource -Forward
9090
Start-Sleep -seconds 2
9191
"Doing some work..."

reference/5.1/Microsoft.PowerShell.Utility/Register-ObjectEvent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function Enable-ProcessCreationEvent {
106106
EventName = 'EventArrived'
107107
SourceIdentifier = 'WMI.ProcessCreated'
108108
MessageData = 'Test'
109-
Forward = $True
109+
Forward = $true
110110
}
111111
Register-ObjectEvent @objectEventArgs
112112
}
@@ -141,7 +141,7 @@ variable.
141141
```powershell
142142
$Timer = New-Object Timers.Timer
143143
$Timer.Interval = 500
144-
$Timer.Enabled = $True
144+
$Timer.Enabled = $true
145145
$objectEventArgs = @{
146146
InputObject = $Timer
147147
EventName = 'Elapsed'

reference/5.1/Microsoft.PowerShell.Utility/Select-Xml.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ the XPath statement from the `Types.ps1xml` file. The command uses a pipeline op
6161
**Node** object and returns its **Name** and **ReferencedMemberName** properties.
6262

6363
```powershell
64-
$Path = "$Pshome\Types.ps1xml"
64+
$Path = "$PSHOME\Types.ps1xml"
6565
$XPath = "/Types/Type/Members/AliasProperty"
6666
Select-Xml -Path $Path -XPath $Xpath | Select-Object -ExpandProperty Node
6767
```
@@ -103,7 +103,7 @@ the **Xml** parameter to specify the XML content in the `$Types` variable and th
103103
parameter to specify the path to the **MethodName** node.
104104

105105
```powershell
106-
[xml]$Types = Get-Content $Pshome\Types.ps1xml
106+
[xml]$Types = Get-Content $PSHOME\Types.ps1xml
107107
Select-Xml -Xml $Types -XPath "//MethodName"
108108
```
109109

@@ -138,7 +138,7 @@ $Namespace = @{
138138
dev = "http://schemas.microsoft.com/maml/dev/2004/10"
139139
}
140140
141-
$Path = "$Pshome\en-us\*dll-Help.xml"
141+
$Path = "$PSHOME\en-us\*dll-Help.xml"
142142
$Xml = Select-Xml -Path $Path -Namespace $Namespace -XPath "//command:name"
143143
$Xml | Format-Table @{Label="Name"; Expression= {($_.node.innerxml).trim()}}, Path -AutoSize
144144
```

reference/5.1/Microsoft.PowerShell.Utility/Show-Command.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ the **Height**, **Width**, and **ErrorPopup** parameters of the `Show-Command` c
9595
$PSDefaultParameterValues = @{
9696
"Show-Command:Height" = 700
9797
"Show-Command:Width" = 1000
98-
"Show-Command:ErrorPopup" = $True
98+
"Show-Command:ErrorPopup" = $true
9999
}
100100
```
101101

reference/5.1/Microsoft.PowerShell.Utility/Sort-Object.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ hash table to specify the property names and sort orders. The **Property** param
190190
two properties, **Status** in descending order and **DisplayName** in ascending order.
191191

192192
**Status** is an enumerated property. **Stopped** has a value of **1** and **Running** has a value
193-
of **4**. The **Descending** parameter is set to `$True` so that **Running** processes are displayed
193+
of **4**. The **Descending** parameter is set to `$true` so that **Running** processes are displayed
194194
before **Stopped** processes. **DisplayName** sets the **Descending** parameter to `$false` to sort
195195
the display names in alphabetical order.
196196

reference/5.1/Microsoft.PowerShell.Utility/Trace-Command.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ processes a `Get-Alias` expression that takes input from the pipeline.
6161

6262
```powershell
6363
$A = "i*"
64-
Trace-Command ParameterBinding {Get-Alias $Input} -PSHost -InputObject $A
64+
Trace-Command ParameterBinding {Get-Alias $input} -PSHost -InputObject $A
6565
```
6666

6767
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
7171
`Trace-Command` cmdlet with the ParameterBinding trace source. The **PSHost** parameter sends the
7272
output to the console.
7373

74-
The expression being processed is `Get-Alias $Input`, where the `$Input` variable is associated with
74+
The expression being processed is `Get-Alias $input`, where the `$input` variable is associated with
7575
the **InputObject** parameter. The **InputObject** parameter passes the variable `$A` to the
7676
expression. In effect, the command being processed during the trace is
7777
`Get-Alias -InputObject $A" or "$A | Get-Alias`.

reference/5.1/Microsoft.PowerShell.Utility/Update-TypeData.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,11 +492,11 @@ Accept wildcard characters: False
492492
### -InheritPropertySerializationSet
493493

494494
Indicates whether the set of properties that are serialized is inherited. The default value is
495-
`$Null`. The acceptable values for this parameter are:
495+
`$null`. The acceptable values for this parameter are:
496496

497-
- `$True`. The property set is inherited.
497+
- `$true`. The property set is inherited.
498498
- `$false`. The property set is not inherited.
499-
- `$Null`. Inheritance is not defined.
499+
- `$null`. Inheritance is not defined.
500500

501501
This parameter is valid only when the value of the **SerializationMethod** parameter is
502502
`SpecificProperties`. When the value of this parameter is `$false`, the **PropertySerializationSet**

reference/5.1/Microsoft.PowerShell.Utility/Wait-Event.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ $objectEventArgs = @{
6363
Register-ObjectEvent @objectEventArgs
6464
$Timer.Interval = 2000
6565
$Timer.Autoreset = $false
66-
$Timer.Enabled = $True
66+
$Timer.Enabled = $true
6767
Wait-Event Timer.Elapsed
6868
```
6969

reference/5.1/Microsoft.WSMan.Management/Enable-WSManCredSSP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ the WSMan provider must be set to true.
133133

134134
```powershell
135135
Connect-WSMan -ComputerName "server02"
136-
Set-Item -Path "WSMan:\server02\service\auth\credSSP" -Value $True
136+
Set-Item -Path "WSMan:\server02\service\auth\credSSP" -Value $true
137137
```
138138

139139
`Connect-WSMan` creates a connection to the remote computer, server02. `Set-Item` uses the **Path**

0 commit comments

Comments
 (0)