Skip to content

Commit c313de9

Browse files
Fix automatic variable case (#11831)
1 parent 337eb29 commit c313de9

40 files changed

Lines changed: 64 additions & 64 deletions

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ For example, the following command creates a session option object.
251251
```powershell
252252
[System.Management.Automation.Remoting.PSSessionOption]@{
253253
IdleTimeout=43200000
254-
SkipCnCheck=$True
254+
SkipCnCheck=$true
255255
}
256256
```
257257

@@ -291,7 +291,7 @@ cmdlet can be a hash table.
291291
```powershell
292292
New-PSSession -ComputerName Server01 -SessionOption @{
293293
IdleTimeout=43200000
294-
SkipCnCheck=$True
294+
SkipCnCheck=$true
295295
}
296296
Register-ScheduledJob -Name Test -FilePath .\Get-Inventory.ps1 -Trigger @{
297297
Frequency="Daily"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ For example:
7373
```
7474

7575
```Output
76-
"PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) "
76+
"PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($NestedPromptLevel + 1)) "
7777
# .Link
7878
# https://go.microsoft.com/fwlink/?LinkID=225750
7979
# .ExternalHelp System.Management.Automation.dll-help.xml
@@ -114,7 +114,7 @@ PowerShell includes a built-in `Prompt` function.
114114

115115
```powershell
116116
function prompt {
117-
"PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) ";
117+
"PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($NestedPromptLevel + 1)) ";
118118
# .Link
119119
# https://go.microsoft.com/fwlink/?LinkID=225750
120120
# .ExternalHelp System.Management.Automation.dll-help.xml

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ object, the file changes too.
2828
Most objects have properties. Properties are the data that are associated with
2929
an object. Different types of object have different properties. For example, a
3030
**FileInfo** object, which represents a file, has an **IsReadOnly** property
31-
that contains `$True` if the file has the read-only attribute and `$false` if
31+
that contains `$true` if the file has the read-only attribute and `$false` if
3232
it doesn't. A **DirectoryInfo** object, which represents a file system
3333
directory, has a **Parent** property that contains the path to the parent
3434
directory.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,15 +312,15 @@ reproduced exactly. For example:
312312

313313
```powershell
314314
@'
315-
The $profile variable contains the path
315+
The $PROFILE variable contains the path
316316
of your PowerShell profile.
317317
'@
318318
```
319319

320320
The output of this command is:
321321

322322
```Output
323-
The $profile variable contains the path
323+
The $PROFILE variable contains the path
324324
of your PowerShell profile.
325325
```
326326

@@ -331,7 +331,7 @@ example:
331331
@"
332332
Even if you have not created a profile,
333333
the path of the profile file is:
334-
$profile.
334+
$PROFILE.
335335
"@
336336
```
337337

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ if (!($username)) { $msgTable.promptMsg }
160160
```
161161

162162
If `Import-LocalizedData` cannot find a `.psd1` file that matches the value of
163-
`$PSUIculture`, the value of `$msgTable` is not replaced, and the call to
163+
`$PSUICulture`, the value of `$msgTable` is not replaced, and the call to
164164
`$msgTable.promptMsg` displays the fallback en-US strings.
165165

166166
## Examples

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,12 +302,12 @@ function and the `$ProfileName` variable.
302302
function New-Profile
303303
{
304304
Write-Host "Running New-Profile function"
305-
$profileName = Split-Path $profile -Leaf
305+
$profileName = Split-Path $PROFILE -Leaf
306306
307-
if (Test-Path $profile)
307+
if (Test-Path $PROFILE)
308308
{Write-Error "Profile $profileName already exists on this computer."}
309309
else
310-
{New-Item -Type file -Path $profile -Force }
310+
{New-Item -Type file -Path $PROFILE -Force }
311311
}
312312
```
313313

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ active copy of the session configuration file.
205205

206206
When you use a session configuration file in a session configuration,
207207
PowerShell creates an active copy of the session configuration file and stores
208-
it in the \$pshome\\SessionConfig directory on the local computer.
208+
it in the \$PSHOME\\SessionConfig directory on the local computer.
209209

210210
The location of the active copy of a session configuration file is stored in
211211
the ConfigFilePath property of the session configuration object.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ table of parameter-name and parameter-value pairs and stores it in the
6969
variable in a command with splatting. The At symbol (`@HashArguments`) replaces
7070
the dollar sign (`$HashArguments`) in the command.
7171

72-
To provide a value for the **WhatIf** switch parameter, use `$True` or
72+
To provide a value for the **WhatIf** switch parameter, use `$true` or
7373
`$false`.
7474

7575
```powershell

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ The **Boolean** type operators (`-is` and `-isnot`) always return a **Boolean**
7373
value, even if the input is a collection of objects.
7474

7575
If `<input>` is a type that is the same as or is _derived_ from the .NET Type,
76-
the `-is` operator returns `$True`.
76+
the `-is` operator returns `$true`.
7777

7878
For example, the **DirectoryInfo** type is derived from the **FileSystemInfo**
7979
type. Therefore, both of these examples return **True**.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Update-Help -Module Microsoft.PowerShell.Security
141141

142142
## Permissions for updatable help
143143

144-
To update help for the modules in the directory `$pshome/Modules`, you must be
144+
To update help for the modules in the directory `$PSHOME/Modules`, you must be
145145
member of the Administrators group on the computer.
146146

147147
If you aren't a member of the Administrators group, you can't update help for

0 commit comments

Comments
 (0)