Skip to content

Commit 744ca8e

Browse files
Fix automatic variable case (#11837)
1 parent bff8b2c commit 744ca8e

35 files changed

+56
-56
lines changed

reference/5.1/ISE/Get-IseSnippet.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ This example displays the title and description of all snippets in the session,
100100
snippets, user-defined snippets, and imported snippets.
101101

102102
```powershell
103-
$PSISE.CurrentPowerShellTab.Snippets | Format-Table DisplayTitle, Description
103+
$psISE.CurrentPowerShellTab.Snippets | Format-Table DisplayTitle, Description
104104
```
105105

106-
The `$PSISE` variable represents the Windows PowerShell ISE host program. The
107-
**CurrentPowerShellTab** property of the `$PSISE` variable represent the current session. The
106+
The `$psISE` variable represents the Windows PowerShell ISE host program. The
107+
**CurrentPowerShellTab** property of the `$psISE` variable represent the current session. The
108108
**Snippets** property represents snippets in the current session.
109109

110-
The `$PSISE.CurrentPowerShellTab.Snippets` command returns a
110+
The `$psISE.CurrentPowerShellTab.Snippets` command returns a
111111
**Microsoft.PowerShell.Host.ISE.ISESnippet** object that represents a snippet, unlike the
112112
`Get-IseSnippet` cmdlet. `Get-IseSnippet` returns a file object (System.Io.FileInfo) that represents
113113
a snippet file.

reference/5.1/ISE/Import-IseSnippet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ you don't need to run a command like this because modules that have snippets wil
9292
```powershell
9393
($env:PSModulePath).split(";") |
9494
ForEach-Object {dir $_\*\Snippets\*.Snippets.ps1xml -ErrorAction SilentlyContinue} |
95-
ForEach-Object {$psise.CurrentPowerShellTab.Snippets.Load($_)}
95+
ForEach-Object {$psISE.CurrentPowerShellTab.Snippets.Load($_)}
9696
```
9797

9898
### Example 5: Copy all module snippets

reference/5.1/ISE/New-IseSnippet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ For more information about Windows PowerShell execution policies, see
244244
Windows PowerShell ISE.
245245
- To delete a snippet that you added, delete the snippet file.
246246
- You cannot delete a built-in snippet, but you can hide all built-in snippets by using the
247-
"$psise.Options.ShowDefaultSnippets=$false" command.
247+
"$psISE.Options.ShowDefaultSnippets=$false" command.
248248
- You can create a snippet that has the same name as a built-in snippet. Both snippets appear in the
249249
snippet menu in Windows PowerShell ISE.
250250

reference/5.1/Microsoft.PowerShell.Core/About/about_Eventlogs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ following command sequence.
165165

166166
```powershell
167167
$m = Get-PSSnapin Microsoft.PowerShell.Core
168-
$m.LogPipelineExecutionDetails = $True
168+
$m.LogPipelineExecutionDetails = $true
169169
```
170170

171171
To disable logging, use the same command sequence to set the property value to

reference/5.1/Microsoft.PowerShell.Core/About/about_Format.ps1xml.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ The next command copies the file contents to a new file,
149149
`MyDotNetTypes.Format.ps1xml`.
150150

151151
```powershell
152-
Copy-Item $PSHome\DotNetTypes.format.ps1xml MyDotNetTypes.Format.ps1xml
152+
Copy-Item $PSHOME\DotNetTypes.format.ps1xml MyDotNetTypes.Format.ps1xml
153153
```
154154

155155
Open the `MyDotNetTypes.Format.ps1xml` file in any XML or text editor, such as
@@ -451,7 +451,7 @@ $Parms = @{
451451
Pattern = "System.IO.DirectoryInfo"
452452
}
453453
Select-String @Parms
454-
Copy-Item $PSHome\FileSystem.format.ps1xml .\MyFileSystem.Format.ps1xml
454+
Copy-Item $PSHOME\FileSystem.format.ps1xml .\MyFileSystem.Format.ps1xml
455455
Update-FormatData -PrependPath $PSHOME\Format\MyFileSystem.Format.ps1xml
456456
```
457457

reference/5.1/Microsoft.PowerShell.Core/About/about_Preference_Variables.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ The following table lists the preference variables and their default values.
3434
| [`$InformationPreference`][07] | [`SilentlyContinue`][54] |
3535
| [`$LogCommandHealthEvent`][08] | `$false` (not logged) |
3636
| [`$LogCommandLifecycleEvent`][08] | `$false` (not logged) |
37-
| [`$LogEngineHealthEvent`][08] | `$True` (logged) |
38-
| [`$LogEngineLifecycleEvent`][08] | `$True` (logged) |
39-
| [`$LogProviderLifecycleEvent`][08] | `$True` (logged) |
40-
| [`$LogProviderHealthEvent`][08] | `$True` (logged) |
37+
| [`$LogEngineHealthEvent`][08] | `$true` (logged) |
38+
| [`$LogEngineLifecycleEvent`][08] | `$true` (logged) |
39+
| [`$LogProviderLifecycleEvent`][08] | `$true` (logged) |
40+
| [`$LogProviderHealthEvent`][08] | `$true` (logged) |
4141
| [`$MaximumAliasCount`][09] | `4096` |
4242
| [`$MaximumDriveCount`][10] | `4096` |
4343
| [`$MaximumErrorCount`][11] | `256` |
@@ -48,12 +48,12 @@ The following table lists the preference variables and their default values.
4848
| [`$OutputEncoding`][16] | [`ASCIIEncoding`][60] object |
4949
| [`$ProgressPreference`][17] | [`Continue`][54] |
5050
| [`$PSDefaultParameterValues`][18] | `@{}` (empty hash table) |
51-
| [`$PSEmailServer`][19] | `$Null` (none) |
51+
| [`$PSEmailServer`][19] | `$null` (none) |
5252
| [`$PSModuleAutoLoadingPreference`][20] | `All` |
5353
| [`$PSSessionApplicationName`][21] | `'wsman'` |
5454
| [`$PSSessionConfigurationName`][22] | `'http://schemas.microsoft.com/powershell/Microsoft.PowerShell'` |
5555
| [`$PSSessionOption`][23] | [`PSSessionOption`][59] object |
56-
| [`$Transcript`][24] | `$Null` (none) |
56+
| [`$Transcript`][24] | `$null` (none) |
5757
| [`$VerbosePreference`][25] | [`SilentlyContinue`][54] |
5858
| [`$WarningPreference`][26] | [`Continue`][54] |
5959
| [`$WhatIfPreference`][27] | `$false` |

reference/5.1/Microsoft.PowerShell.Core/Export-Console.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ For more information about Windows PowerShell snap-ins, see [about_PSSnapins](Ab
3636
### Example 1: Export the names of snap-ins in the current session
3737

3838
```
39-
PS C:\> Export-Console -Path $pshome\Consoles\ConsoleS1.psc1
39+
PS C:\> Export-Console -Path $PSHOME\Consoles\ConsoleS1.psc1
4040
```
4141

4242
This command exports the names of Windows PowerShell snap-ins in the current session to the
43-
`ConsoleS1.psc1` file in the Consoles folder of the Windows PowerShell installation folder, `$pshome`.
43+
`ConsoleS1.psc1` file in the Consoles folder of the Windows PowerShell installation folder, `$PSHOME`.
4444

4545
### Example 2: Export the names of snap-ins to the most recent console file
4646

reference/5.1/Microsoft.PowerShell.Management/Test-ComputerSecureChannel.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The `Test-ComputerSecureChannel` cmdlet verifies that the channel between the lo
2727
domain is working correctly by checking the status of its trust relationships. If a connection
2828
fails, you can use the **Repair** parameter to try to restore it.
2929

30-
`Test-ComputerSecureChannel` returns $True if the channel is working correctly and $false if it is
30+
`Test-ComputerSecureChannel` returns $true if the channel is working correctly and $false if it is
3131
not. This result lets you use the cmdlet in conditional statements in functions and scripts. To get
3232
more detailed test results, use the **Verbose** parameter.
3333

@@ -200,7 +200,7 @@ You cannot pipe input to this cmdlet.
200200
201201
### System.Boolean
202202
203-
This cmdlet returns `$True` if the connection is working correctly and `$false` if it is not.
203+
This cmdlet returns `$true` if the connection is working correctly and `$false` if it is not.
204204

205205
## NOTES
206206

reference/5.1/Microsoft.PowerShell.Utility/Get-Host.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ interchangeably.
225225

226226
This command uses the **PrivateData** property of `$Host` as its ErrorBackgroundColor property. To
227227
see all of the properties of the object in the `$Host`.PrivateData property, type
228-
`$host.PrivateData | format-list *`.
228+
`$Host.PrivateData | format-list *`.
229229

230230
## PARAMETERS
231231

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ $Cred = Get-Credential
8484
8585
# Next, allow the use of self-signed SSL certificates.
8686
87-
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = { $True }
87+
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = { $true }
8888
8989
# Create variables to store the values consumed by the Invoke-RestMethod command.
9090
# The search variable contents are later embedded in the body variable.

0 commit comments

Comments
 (0)