Skip to content

Commit def7e34

Browse files
Fix automatic variable case (#11832)
1 parent c313de9 commit def7e34

40 files changed

+61
-61
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ the dollar sign (`$`). This has the same effect as prefixing the variables name
130130
with the dollar sign (`$`).
131131

132132
```powershell
133-
$variable:home
133+
$variable:HOME
134134
```
135135

136136
### Get variables using wildcards

reference/5.1/Microsoft.PowerShell.Core/Enable-PSRemoting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ This cmdlet returns strings that describe its results.
219219
## NOTES
220220

221221
Starting in PowerShell 3.0, `Enable-PSRemoting` enables all session configurations by setting the
222-
value of the **Enabled** property of all session configurations to `$True`.
222+
value of the **Enabled** property of all session configurations to `$true`.
223223

224224
- On server versions of the Windows operating system, `Enable-PSRemoting` creates firewall rules for
225225
private and domain networks that allow remote access, and creates a firewall rule for public
@@ -236,7 +236,7 @@ value of the **Enabled** property of all session configurations to `$True`.
236236
`Set-NetFirewallRule -Name "WINRM-HTTP-In-TCP-PUBLIC" -RemoteAddress Any`
237237

238238
`Enable-PSRemoting` enables all session configurations by setting the value of the **Enabled**
239-
property of all session configurations to `$True`.
239+
property of all session configurations to `$true`.
240240

241241
`Enable-PSRemoting` removes the **Deny_All** and **Network_Deny_All** settings. This provides remote
242242
access to session configurations that were reserved for local use.

reference/5.1/Microsoft.PowerShell.Core/Get-Job.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ Accept wildcard characters: False
547547

548548
Indicates whether this cmdlet gets only jobs that have the specified **HasMoreData** property value.
549549
The **HasMoreData** property indicates whether all job results have been received in the current
550-
session. To get jobs that have more results, specify a value of `$True`. To get jobs that do not
550+
session. To get jobs that have more results, specify a value of `$true`. To get jobs that do not
551551
have more results, specify a value of `$false`.
552552

553553
To get the results of a job, use the `Receive-Job` cmdlet.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ Get-Content $m.Path
266266
CLRVersion = "2.0"
267267
NestedModules = "Microsoft.BackgroundIntelligentTransfer.Management"
268268
FormatsToProcess = "FileTransfer.Format.ps1xml"
269-
RequiredAssemblies = Join-Path $psScriptRoot "Microsoft.BackgroundIntelligentTransfer.Management.Interop.dll"
269+
RequiredAssemblies = Join-Path $PSScriptRoot "Microsoft.BackgroundIntelligentTransfer.Management.Interop.dll"
270270
}
271271
```
272272

reference/5.1/Microsoft.PowerShell.Core/Invoke-Command.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ Accept wildcard characters: False
10801080
Specifies input to the command. Enter a variable that contains the objects or type a command or
10811081
expression that gets the objects.
10821082

1083-
When using the **InputObject** parameter, use the `$Input` automatic variable in the value of the
1083+
When using the **InputObject** parameter, use the `$input` automatic variable in the value of the
10841084
**ScriptBlock** parameter to represent the input objects.
10851085

10861086
```yaml
@@ -1375,7 +1375,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
13751375

13761376
### System.Management.Automation.ScriptBlock
13771377

1378-
You can pipe a command in a script block to `Invoke-Command`. Use the `$Input` automatic variable to
1378+
You can pipe a command in a script block to `Invoke-Command`. Use the `$input` automatic variable to
13791379
represent the input objects in the command.
13801380

13811381
## OUTPUTS

reference/5.1/Microsoft.PowerShell.Core/New-ModuleManifest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ Accept wildcard characters: False
772772
### -Path
773773

774774
Specifies the path and file name of the new module manifest. Enter a path and file name with a
775-
`.psd1` file name extension, such as `$pshome\Modules\MyModule\MyModule.psd1`. The **Path**
775+
`.psd1` file name extension, such as `$PSHOME\Modules\MyModule\MyModule.psd1`. The **Path**
776776
parameter is required.
777777

778778
If you specify the path to an existing file, `New-ModuleManifest` replaces the file without warning
@@ -1136,7 +1136,7 @@ manifest.
11361136
Module manifests are usually optional. However, a module manifest is required to export an assembly
11371137
that is installed in the global assembly cache.
11381138

1139-
To add or change files in the `$pshome\Modules` directory, start PowerShell with the **Run as
1139+
To add or change files in the `$PSHOME\Modules` directory, start PowerShell with the **Run as
11401140
administrator** option.
11411141

11421142
In PowerShell 2.0, many parameters of `New-ModuleManifest` were mandatory, even though they weren't

reference/5.1/Microsoft.PowerShell.Core/New-PSSessionConfigurationFile.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ True
169169
```
170170

171171
Use the **Verbose** parameter with `Test-PSSessionConfigurationFile` to display any errors that are
172-
detected. The cmdlet returns `$True` if no errors are detected in the file.
172+
detected. The cmdlet returns `$true` if no errors are detected in the file.
173173

174174
### Example 5: Create a sample configuration file
175175

@@ -583,7 +583,7 @@ The acceptable values for this parameter are:
583583
elements, such as script blocks, variables, or operators.
584584
- RestrictedLanguage - Users may run cmdlets and functions, but are not permitted to use script
585585
blocks or variables except for the following permitted variables: `$PSCulture`, `$PSUICulture`,
586-
`$True`, `$false`, and `$Null`. Users may use only the basic comparison operators (`-eq`, `-gt`,
586+
`$true`, `$false`, and `$null`. Users may use only the basic comparison operators (`-eq`, `-gt`,
587587
`-lt`). Assignment statements, property references, and method calls are not permitted.
588588

589589
The default value of the **LanguageMode** parameter depends on the value of the **SessionType**

reference/5.1/Microsoft.PowerShell.Core/New-PSSessionOption.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ Specifies the culture to use for the session. Enter a culture name in
314314
`<languagecode2>-<country/regioncode2>` format (like `ja-JP`), a variable that contains a
315315
**CultureInfo** object, or a command that gets a **CultureInfo** object.
316316

317-
The default value is `$Null`, and the culture that is set in the operating system is used in the
317+
The default value is `$null`, and the culture that is set in the operating system is used in the
318318
session.
319319

320320
```yaml

reference/5.1/Microsoft.PowerShell.Core/Receive-PSSession.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ disconnected and get the results of jobs that were running in the sessions.
248248

249249
```
250250
PS> $parms = @{
251-
InDisconnectedSession = $True
251+
InDisconnectedSession = $true
252252
ComputerName = "Server01", "Server02", "Server30"
253253
FilePath = "\\Server12\Scripts\SharedScripts\Get-BugStatus.ps1"
254254
Name = "BugStatus"

reference/5.1/Microsoft.PowerShell.Core/Save-Help.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ cabinet file. The `Update-Help` cmdlet extracts the help files, validates the XM
6969
then installs the help files and the help information file in a language-specific subfolder of the
7070
module folder.
7171

72-
To save the help files for modules in the PowerShell installation folder (`$pshome\Modules`), start
72+
To save the help files for modules in the PowerShell installation folder (`$PSHOME\Modules`), start
7373
PowerShell by using the Run as administrator option. You must be a member of the Administrators
7474
group on the computer to download the help files for these modules.
7575

@@ -441,9 +441,9 @@ This cmdlet returns no output.
441441

442442
## NOTES
443443

444-
- To save help for modules in the $pshome\Modules folder, start PowerShell by using the Run as
444+
- To save help for modules in the $PSHOME\Modules folder, start PowerShell by using the Run as
445445
administrator option. Only members of the Administrators group on the computer can download help
446-
for modules in the $pshome\Modules folder.
446+
for modules in the $PSHOME\Modules folder.
447447
- The saved help for each module consists of one help information (HelpInfo XML) file and one
448448
cabinet (.cab) file for the help files each UI culture. You do not have to extract the help files
449449
from the cabinet file. The `Update-Help` cmdlet extracts the help files, validates the XML, and

0 commit comments

Comments
 (0)