diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Object_Creation.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Object_Creation.md
index 4a08d9041007..14a6b7ae9fd9 100644
--- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Object_Creation.md
+++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Object_Creation.md
@@ -251,7 +251,7 @@ For example, the following command creates a session option object.
```powershell
[System.Management.Automation.Remoting.PSSessionOption]@{
IdleTimeout=43200000
- SkipCnCheck=$True
+ SkipCnCheck=$true
}
```
@@ -291,7 +291,7 @@ cmdlet can be a hash table.
```powershell
New-PSSession -ComputerName Server01 -SessionOption @{
IdleTimeout=43200000
- SkipCnCheck=$True
+ SkipCnCheck=$true
}
Register-ScheduledJob -Name Test -FilePath .\Get-Inventory.ps1 -Trigger @{
Frequency="Daily"
diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Prompts.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Prompts.md
index c9968ac1626f..0450d2f14b1a 100644
--- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Prompts.md
+++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Prompts.md
@@ -73,7 +73,7 @@ For example:
```
```Output
-"PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) "
+"PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($NestedPromptLevel + 1)) "
# .Link
# https://go.microsoft.com/fwlink/?LinkID=225750
# .ExternalHelp System.Management.Automation.dll-help.xml
@@ -114,7 +114,7 @@ PowerShell includes a built-in `Prompt` function.
```powershell
function prompt {
- "PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) ";
+ "PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($NestedPromptLevel + 1)) ";
# .Link
# https://go.microsoft.com/fwlink/?LinkID=225750
# .ExternalHelp System.Management.Automation.dll-help.xml
diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Properties.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Properties.md
index 630cc0db09af..aa6b177ca34e 100644
--- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Properties.md
+++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Properties.md
@@ -28,7 +28,7 @@ object, the file changes too.
Most objects have properties. Properties are the data that are associated with
an object. Different types of object have different properties. For example, a
**FileInfo** object, which represents a file, has an **IsReadOnly** property
-that contains `$True` if the file has the read-only attribute and `$false` if
+that contains `$true` if the file has the read-only attribute and `$false` if
it doesn't. A **DirectoryInfo** object, which represents a file system
directory, has a **Parent** property that contains the path to the parent
directory.
diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md
index 00a7b4cbcb63..dd7959510746 100644
--- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md
+++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md
@@ -312,7 +312,7 @@ reproduced exactly. For example:
```powershell
@'
-The $profile variable contains the path
+The $PROFILE variable contains the path
of your PowerShell profile.
'@
```
@@ -320,7 +320,7 @@ of your PowerShell profile.
The output of this command is:
```Output
-The $profile variable contains the path
+The $PROFILE variable contains the path
of your PowerShell profile.
```
@@ -331,7 +331,7 @@ example:
@"
Even if you have not created a profile,
the path of the profile file is:
-$profile.
+$PROFILE.
"@
```
diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Script_Internationalization.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Script_Internationalization.md
index 50b088a7405b..1358fbbb6362 100644
--- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Script_Internationalization.md
+++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Script_Internationalization.md
@@ -160,7 +160,7 @@ if (!($username)) { $msgTable.promptMsg }
```
If `Import-LocalizedData` cannot find a `.psd1` file that matches the value of
-`$PSUIculture`, the value of `$msgTable` is not replaced, and the call to
+`$PSUICulture`, the value of `$msgTable` is not replaced, and the call to
`$msgTable.promptMsg` displays the fallback en-US strings.
## Examples
diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Scripts.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Scripts.md
index f17e85c8367a..04532a6a6db1 100644
--- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Scripts.md
+++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Scripts.md
@@ -302,12 +302,12 @@ function and the `$ProfileName` variable.
function New-Profile
{
Write-Host "Running New-Profile function"
- $profileName = Split-Path $profile -Leaf
+ $profileName = Split-Path $PROFILE -Leaf
- if (Test-Path $profile)
+ if (Test-Path $PROFILE)
{Write-Error "Profile $profileName already exists on this computer."}
else
- {New-Item -Type file -Path $profile -Force }
+ {New-Item -Type file -Path $PROFILE -Force }
}
```
diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Session_Configuration_Files.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Session_Configuration_Files.md
index a6a74e07aab2..110350375464 100644
--- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Session_Configuration_Files.md
+++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Session_Configuration_Files.md
@@ -205,7 +205,7 @@ active copy of the session configuration file.
When you use a session configuration file in a session configuration,
PowerShell creates an active copy of the session configuration file and stores
-it in the \$pshome\\SessionConfig directory on the local computer.
+it in the \$PSHOME\\SessionConfig directory on the local computer.
The location of the active copy of a session configuration file is stored in
the ConfigFilePath property of the session configuration object.
diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Splatting.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Splatting.md
index 6e430e8e262f..0c25314f1d77 100644
--- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Splatting.md
+++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Splatting.md
@@ -69,7 +69,7 @@ table of parameter-name and parameter-value pairs and stores it in the
variable in a command with splatting. The At symbol (`@HashArguments`) replaces
the dollar sign (`$HashArguments`) in the command.
-To provide a value for the **WhatIf** switch parameter, use `$True` or
+To provide a value for the **WhatIf** switch parameter, use `$true` or
`$false`.
```powershell
diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Type_Operators.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Type_Operators.md
index 459ae17e4db1..fe6da7c106f0 100644
--- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Type_Operators.md
+++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Type_Operators.md
@@ -73,7 +73,7 @@ The **Boolean** type operators (`-is` and `-isnot`) always return a **Boolean**
value, even if the input is a collection of objects.
If `` is a type that is the same as or is _derived_ from the .NET Type,
-the `-is` operator returns `$True`.
+the `-is` operator returns `$true`.
For example, the **DirectoryInfo** type is derived from the **FileSystemInfo**
type. Therefore, both of these examples return **True**.
diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Updatable_Help.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Updatable_Help.md
index aeb391b578fa..a2fa92b1e9f3 100644
--- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Updatable_Help.md
+++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Updatable_Help.md
@@ -141,7 +141,7 @@ Update-Help -Module Microsoft.PowerShell.Security
## Permissions for updatable help
-To update help for the modules in the directory `$pshome/Modules`, you must be
+To update help for the modules in the directory `$PSHOME/Modules`, you must be
member of the Administrators group on the computer.
If you aren't a member of the Administrators group, you can't update help for
diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Object_Creation.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Object_Creation.md
index 8fba97cbda98..2c9dc918853a 100644
--- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Object_Creation.md
+++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Object_Creation.md
@@ -247,7 +247,7 @@ For example, the following command creates a session option object.
```powershell
[System.Management.Automation.Remoting.PSSessionOption]@{
IdleTimeout=43200000
- SkipCnCheck=$True
+ SkipCnCheck=$true
}
```
@@ -287,7 +287,7 @@ cmdlet can be a hash table.
```powershell
New-PSSession -ComputerName Server01 -SessionOption @{
IdleTimeout=43200000
- SkipCnCheck=$True
+ SkipCnCheck=$true
}
Register-ScheduledJob -Name Test -FilePath .\Get-Inventory.ps1 -Trigger @{
Frequency="Daily"
diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Prompts.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Prompts.md
index 930f9f8b3b5a..880169fe9b93 100644
--- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Prompts.md
+++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Prompts.md
@@ -73,7 +73,7 @@ For example:
```
```Output
-"PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) "
+"PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($NestedPromptLevel + 1)) "
# .Link
# https://go.microsoft.com/fwlink/?LinkID=225750
# .ExternalHelp System.Management.Automation.dll-help.xml
@@ -114,7 +114,7 @@ PowerShell includes a built-in `Prompt` function.
```powershell
function prompt {
- "PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) ";
+ "PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($NestedPromptLevel + 1)) ";
# .Link
# https://go.microsoft.com/fwlink/?LinkID=225750
# .ExternalHelp System.Management.Automation.dll-help.xml
diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Properties.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Properties.md
index bd16790b4abc..32a491e69f16 100644
--- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Properties.md
+++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Properties.md
@@ -28,7 +28,7 @@ object, the file changes too.
Most objects have properties. Properties are the data that are associated with
an object. Different types of object have different properties. For example, a
**FileInfo** object, which represents a file, has an **IsReadOnly** property
-that contains `$True` if the file has the read-only attribute and `$false` if
+that contains `$true` if the file has the read-only attribute and `$false` if
it doesn't. A **DirectoryInfo** object, which represents a file system
directory, has a **Parent** property that contains the path to the parent
directory.
diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md
index a3828c866d93..60cd09726232 100644
--- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md
+++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md
@@ -312,7 +312,7 @@ reproduced exactly. For example:
```powershell
@'
-The $profile variable contains the path
+The $PROFILE variable contains the path
of your PowerShell profile.
'@
```
@@ -320,7 +320,7 @@ of your PowerShell profile.
The output of this command is:
```Output
-The $profile variable contains the path
+The $PROFILE variable contains the path
of your PowerShell profile.
```
@@ -331,7 +331,7 @@ example:
@"
Even if you have not created a profile,
the path of the profile file is:
-$profile.
+$PROFILE.
"@
```
diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Script_Internationalization.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Script_Internationalization.md
index 1b8c9cc330a4..24db49d606b8 100644
--- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Script_Internationalization.md
+++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Script_Internationalization.md
@@ -160,7 +160,7 @@ if (!($username)) { $msgTable.promptMsg }
```
If `Import-LocalizedData` cannot find a `.psd1` file that matches the value of
-`$PSUIculture`, the value of `$msgTable` is not replaced, and the call to
+`$PSUICulture`, the value of `$msgTable` is not replaced, and the call to
`$msgTable.promptMsg` displays the fallback en-US strings.
## Examples
diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Scripts.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Scripts.md
index 2fa5f7f8fc26..9f8ef8b00d6f 100644
--- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Scripts.md
+++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Scripts.md
@@ -305,12 +305,12 @@ function and the `$ProfileName` variable.
function New-Profile
{
Write-Host "Running New-Profile function"
- $profileName = Split-Path $profile -Leaf
+ $profileName = Split-Path $PROFILE -Leaf
- if (Test-Path $profile)
+ if (Test-Path $PROFILE)
{Write-Error "Profile $profileName already exists on this computer."}
else
- {New-Item -Type file -Path $profile -Force }
+ {New-Item -Type file -Path $PROFILE -Force }
}
```
diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Session_Configuration_Files.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Session_Configuration_Files.md
index 626270053301..623db4d2ae62 100644
--- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Session_Configuration_Files.md
+++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Session_Configuration_Files.md
@@ -206,7 +206,7 @@ active copy of the session configuration file.
When you use a session configuration file in a session configuration,
PowerShell creates an active copy of the session configuration file and stores
-it in the \$pshome\\SessionConfig directory on the local computer.
+it in the \$PSHOME\\SessionConfig directory on the local computer.
The location of the active copy of a session configuration file is stored in
the ConfigFilePath property of the session configuration object.
diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Splatting.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Splatting.md
index bf3c6ceab4ed..5f3d8c106d1c 100644
--- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Splatting.md
+++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Splatting.md
@@ -72,7 +72,7 @@ table of parameter-name and parameter-value pairs and stores it in the
variable in a command with splatting. The At symbol (`@HashArguments`) replaces
the dollar sign (`$HashArguments`) in the command.
-To provide a value for the **WhatIf** switch parameter, use `$True` or
+To provide a value for the **WhatIf** switch parameter, use `$true` or
`$false`.
```powershell
diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Type_Operators.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Type_Operators.md
index 3eeb150a8107..91f0e4869145 100644
--- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Type_Operators.md
+++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Type_Operators.md
@@ -73,7 +73,7 @@ The **Boolean** type operators (`-is` and `-isnot`) always return a **Boolean**
value, even if the input is a collection of objects.
If `` is a type that is the same as or is _derived_ from the .NET Type,
-the `-is` operator returns `$True`.
+the `-is` operator returns `$true`.
For example, the **DirectoryInfo** type is derived from the **FileSystemInfo**
type. Therefore, both of these examples return **True**.
diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Updatable_Help.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Updatable_Help.md
index 5d6693f3fce0..e06f5c3393a4 100644
--- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Updatable_Help.md
+++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Updatable_Help.md
@@ -133,7 +133,7 @@ Update-Help -Module Microsoft.PowerShell.Security
## Permissions for updatable help
-To update help for the modules in the directory `$pshome/Modules`, you must be
+To update help for the modules in the directory `$PSHOME/Modules`, you must be
member of the Administrators group on the computer.
If you aren't a member of the Administrators group, you can't update help for
diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Object_Creation.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Object_Creation.md
index 2b201da9b14f..7a9606157299 100644
--- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Object_Creation.md
+++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Object_Creation.md
@@ -247,7 +247,7 @@ For example, the following command creates a session option object.
```powershell
[System.Management.Automation.Remoting.PSSessionOption]@{
IdleTimeout=43200000
- SkipCnCheck=$True
+ SkipCnCheck=$true
}
```
@@ -287,7 +287,7 @@ cmdlet can be a hash table.
```powershell
New-PSSession -ComputerName Server01 -SessionOption @{
IdleTimeout=43200000
- SkipCnCheck=$True
+ SkipCnCheck=$true
}
Register-ScheduledJob -Name Test -FilePath .\Get-Inventory.ps1 -Trigger @{
Frequency="Daily"
diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Prompts.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Prompts.md
index 85412ae8ab71..a2975ef8898b 100644
--- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Prompts.md
+++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Prompts.md
@@ -74,7 +74,7 @@ For example:
```
```Output
-"PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) "
+"PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($NestedPromptLevel + 1)) "
# .Link
# https://go.microsoft.com/fwlink/?LinkID=225750
# .ExternalHelp System.Management.Automation.dll-help.xml
@@ -115,7 +115,7 @@ PowerShell includes a built-in `Prompt` function.
```powershell
function prompt {
- "PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) ";
+ "PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($NestedPromptLevel + 1)) ";
# .Link
# https://go.microsoft.com/fwlink/?LinkID=225750
# .ExternalHelp System.Management.Automation.dll-help.xml
diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Properties.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Properties.md
index 7b4a7cab38c4..dbe93639b02c 100644
--- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Properties.md
+++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Properties.md
@@ -28,7 +28,7 @@ object, the file changes too.
Most objects have properties. Properties are the data that are associated with
an object. Different types of object have different properties. For example, a
**FileInfo** object, which represents a file, has an **IsReadOnly** property
-that contains `$True` if the file has the read-only attribute and `$false` if
+that contains `$true` if the file has the read-only attribute and `$false` if
it doesn't. A **DirectoryInfo** object, which represents a file system
directory, has a **Parent** property that contains the path to the parent
directory.
diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md
index fa85628eeb86..5b4b3b555803 100644
--- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md
+++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md
@@ -312,7 +312,7 @@ reproduced exactly. For example:
```powershell
@'
-The $profile variable contains the path
+The $PROFILE variable contains the path
of your PowerShell profile.
'@
```
@@ -320,7 +320,7 @@ of your PowerShell profile.
The output of this command is:
```Output
-The $profile variable contains the path
+The $PROFILE variable contains the path
of your PowerShell profile.
```
@@ -331,7 +331,7 @@ example:
@"
Even if you have not created a profile,
the path of the profile file is:
-$profile.
+$PROFILE.
"@
```
diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Script_Internationalization.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Script_Internationalization.md
index 8a3b78ec6e35..f4e86cef8490 100644
--- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Script_Internationalization.md
+++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Script_Internationalization.md
@@ -160,7 +160,7 @@ if (!($username)) { $msgTable.promptMsg }
```
If `Import-LocalizedData` cannot find a `.psd1` file that matches the value of
-`$PSUIculture`, the value of `$msgTable` is not replaced, and the call to
+`$PSUICulture`, the value of `$msgTable` is not replaced, and the call to
`$msgTable.promptMsg` displays the fallback en-US strings.
## Examples
diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Scripts.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Scripts.md
index 67103599e6a2..1d1dff0b2c5b 100644
--- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Scripts.md
+++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Scripts.md
@@ -305,12 +305,12 @@ function and the `$ProfileName` variable.
function New-Profile
{
Write-Host "Running New-Profile function"
- $profileName = Split-Path $profile -Leaf
+ $profileName = Split-Path $PROFILE -Leaf
- if (Test-Path $profile)
+ if (Test-Path $PROFILE)
{Write-Error "Profile $profileName already exists on this computer."}
else
- {New-Item -Type file -Path $profile -Force }
+ {New-Item -Type file -Path $PROFILE -Force }
}
```
diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Session_Configuration_Files.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Session_Configuration_Files.md
index ab30485f99d2..cbfa59e76e41 100644
--- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Session_Configuration_Files.md
+++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Session_Configuration_Files.md
@@ -207,7 +207,7 @@ active copy of the session configuration file.
When you use a session configuration file in a session configuration,
PowerShell creates an active copy of the session configuration file and stores
-it in the \$pshome\\SessionConfig directory on the local computer.
+it in the \$PSHOME\\SessionConfig directory on the local computer.
The location of the active copy of a session configuration file is stored in
the ConfigFilePath property of the session configuration object.
diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Splatting.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Splatting.md
index dff6794765ff..65ba92fd5ca4 100644
--- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Splatting.md
+++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Splatting.md
@@ -72,7 +72,7 @@ table of parameter-name and parameter-value pairs and stores it in the
variable in a command with splatting. The At symbol (`@HashArguments`) replaces
the dollar sign (`$HashArguments`) in the command.
-To provide a value for the **WhatIf** switch parameter, use `$True` or
+To provide a value for the **WhatIf** switch parameter, use `$true` or
`$false`.
```powershell
diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Type_Operators.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Type_Operators.md
index 86ee04aaf949..68b7695acea7 100644
--- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Type_Operators.md
+++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Type_Operators.md
@@ -74,7 +74,7 @@ The **Boolean** type operators (`-is` and `-isnot`) always return a **Boolean**
value, even if the input is a collection of objects.
If `` is a type that is the same as or is _derived_ from the .NET Type,
-the `-is` operator returns `$True`.
+the `-is` operator returns `$true`.
For example, the **DirectoryInfo** type is derived from the **FileSystemInfo**
type. Therefore, both of these examples return **True**.
diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Updatable_Help.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Updatable_Help.md
index ffcd67cd7b61..8325801ec398 100644
--- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Updatable_Help.md
+++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Updatable_Help.md
@@ -133,7 +133,7 @@ Update-Help -Module Microsoft.PowerShell.Security
## Permissions for updatable help
-To update help for the modules in the directory `$pshome/Modules`, you must be
+To update help for the modules in the directory `$PSHOME/Modules`, you must be
member of the Administrators group on the computer.
If you aren't a member of the Administrators group, you can't update help for
diff --git a/reference/7.6/Microsoft.PowerShell.Core/About/about_Object_Creation.md b/reference/7.6/Microsoft.PowerShell.Core/About/about_Object_Creation.md
index 60d49fc4ae42..dfea41cb1895 100644
--- a/reference/7.6/Microsoft.PowerShell.Core/About/about_Object_Creation.md
+++ b/reference/7.6/Microsoft.PowerShell.Core/About/about_Object_Creation.md
@@ -247,7 +247,7 @@ For example, the following command creates a session option object.
```powershell
[System.Management.Automation.Remoting.PSSessionOption]@{
IdleTimeout=43200000
- SkipCnCheck=$True
+ SkipCnCheck=$true
}
```
@@ -287,7 +287,7 @@ cmdlet can be a hash table.
```powershell
New-PSSession -ComputerName Server01 -SessionOption @{
IdleTimeout=43200000
- SkipCnCheck=$True
+ SkipCnCheck=$true
}
Register-ScheduledJob -Name Test -FilePath .\Get-Inventory.ps1 -Trigger @{
Frequency="Daily"
diff --git a/reference/7.6/Microsoft.PowerShell.Core/About/about_Prompts.md b/reference/7.6/Microsoft.PowerShell.Core/About/about_Prompts.md
index ebeb1691f192..354aa90bcab7 100644
--- a/reference/7.6/Microsoft.PowerShell.Core/About/about_Prompts.md
+++ b/reference/7.6/Microsoft.PowerShell.Core/About/about_Prompts.md
@@ -74,7 +74,7 @@ For example:
```
```Output
-"PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) "
+"PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($NestedPromptLevel + 1)) "
# .Link
# https://go.microsoft.com/fwlink/?LinkID=225750
# .ExternalHelp System.Management.Automation.dll-help.xml
@@ -115,7 +115,7 @@ PowerShell includes a built-in `Prompt` function.
```powershell
function prompt {
- "PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) ";
+ "PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($NestedPromptLevel + 1)) ";
# .Link
# https://go.microsoft.com/fwlink/?LinkID=225750
# .ExternalHelp System.Management.Automation.dll-help.xml
diff --git a/reference/7.6/Microsoft.PowerShell.Core/About/about_Properties.md b/reference/7.6/Microsoft.PowerShell.Core/About/about_Properties.md
index a2c571f916bb..f705141e7850 100644
--- a/reference/7.6/Microsoft.PowerShell.Core/About/about_Properties.md
+++ b/reference/7.6/Microsoft.PowerShell.Core/About/about_Properties.md
@@ -28,7 +28,7 @@ object, the file changes too.
Most objects have properties. Properties are the data that are associated with
an object. Different types of object have different properties. For example, a
**FileInfo** object, which represents a file, has an **IsReadOnly** property
-that contains `$True` if the file has the read-only attribute and `$false` if
+that contains `$true` if the file has the read-only attribute and `$false` if
it doesn't. A **DirectoryInfo** object, which represents a file system
directory, has a **Parent** property that contains the path to the parent
directory.
diff --git a/reference/7.6/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md b/reference/7.6/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md
index 36faaaa15ab0..83565a666872 100644
--- a/reference/7.6/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md
+++ b/reference/7.6/Microsoft.PowerShell.Core/About/about_Quoting_Rules.md
@@ -312,7 +312,7 @@ reproduced exactly. For example:
```powershell
@'
-The $profile variable contains the path
+The $PROFILE variable contains the path
of your PowerShell profile.
'@
```
@@ -320,7 +320,7 @@ of your PowerShell profile.
The output of this command is:
```Output
-The $profile variable contains the path
+The $PROFILE variable contains the path
of your PowerShell profile.
```
@@ -331,7 +331,7 @@ example:
@"
Even if you have not created a profile,
the path of the profile file is:
-$profile.
+$PROFILE.
"@
```
diff --git a/reference/7.6/Microsoft.PowerShell.Core/About/about_Script_Internationalization.md b/reference/7.6/Microsoft.PowerShell.Core/About/about_Script_Internationalization.md
index 383da941e797..7b0ce3b9dcc7 100644
--- a/reference/7.6/Microsoft.PowerShell.Core/About/about_Script_Internationalization.md
+++ b/reference/7.6/Microsoft.PowerShell.Core/About/about_Script_Internationalization.md
@@ -160,7 +160,7 @@ if (!($username)) { $msgTable.promptMsg }
```
If `Import-LocalizedData` cannot find a `.psd1` file that matches the value of
-`$PSUIculture`, the value of `$msgTable` is not replaced, and the call to
+`$PSUICulture`, the value of `$msgTable` is not replaced, and the call to
`$msgTable.promptMsg` displays the fallback en-US strings.
## Examples
diff --git a/reference/7.6/Microsoft.PowerShell.Core/About/about_Scripts.md b/reference/7.6/Microsoft.PowerShell.Core/About/about_Scripts.md
index 1e69a5aea97b..dc3faea15502 100644
--- a/reference/7.6/Microsoft.PowerShell.Core/About/about_Scripts.md
+++ b/reference/7.6/Microsoft.PowerShell.Core/About/about_Scripts.md
@@ -305,12 +305,12 @@ function and the `$ProfileName` variable.
function New-Profile
{
Write-Host "Running New-Profile function"
- $profileName = Split-Path $profile -Leaf
+ $profileName = Split-Path $PROFILE -Leaf
- if (Test-Path $profile)
+ if (Test-Path $PROFILE)
{Write-Error "Profile $profileName already exists on this computer."}
else
- {New-Item -Type file -Path $profile -Force }
+ {New-Item -Type file -Path $PROFILE -Force }
}
```
diff --git a/reference/7.6/Microsoft.PowerShell.Core/About/about_Session_Configuration_Files.md b/reference/7.6/Microsoft.PowerShell.Core/About/about_Session_Configuration_Files.md
index d4b08274c0c5..823d350812b2 100644
--- a/reference/7.6/Microsoft.PowerShell.Core/About/about_Session_Configuration_Files.md
+++ b/reference/7.6/Microsoft.PowerShell.Core/About/about_Session_Configuration_Files.md
@@ -206,7 +206,7 @@ active copy of the session configuration file.
When you use a session configuration file in a session configuration,
PowerShell creates an active copy of the session configuration file and stores
-it in the \$pshome\\SessionConfig directory on the local computer.
+it in the \$PSHOME\\SessionConfig directory on the local computer.
The location of the active copy of a session configuration file is stored in
the ConfigFilePath property of the session configuration object.
diff --git a/reference/7.6/Microsoft.PowerShell.Core/About/about_Splatting.md b/reference/7.6/Microsoft.PowerShell.Core/About/about_Splatting.md
index b41251bc70f3..b8ca2758f9ee 100644
--- a/reference/7.6/Microsoft.PowerShell.Core/About/about_Splatting.md
+++ b/reference/7.6/Microsoft.PowerShell.Core/About/about_Splatting.md
@@ -72,7 +72,7 @@ table of parameter-name and parameter-value pairs and stores it in the
variable in a command with splatting. The At symbol (`@HashArguments`) replaces
the dollar sign (`$HashArguments`) in the command.
-To provide a value for the **WhatIf** switch parameter, use `$True` or
+To provide a value for the **WhatIf** switch parameter, use `$true` or
`$false`.
```powershell
diff --git a/reference/7.6/Microsoft.PowerShell.Core/About/about_Type_Operators.md b/reference/7.6/Microsoft.PowerShell.Core/About/about_Type_Operators.md
index 6fbe160cbb24..c6012b3478b0 100644
--- a/reference/7.6/Microsoft.PowerShell.Core/About/about_Type_Operators.md
+++ b/reference/7.6/Microsoft.PowerShell.Core/About/about_Type_Operators.md
@@ -74,7 +74,7 @@ The **Boolean** type operators (`-is` and `-isnot`) always return a **Boolean**
value, even if the input is a collection of objects.
If `` is a type that is the same as or is _derived_ from the .NET Type,
-the `-is` operator returns `$True`.
+the `-is` operator returns `$true`.
For example, the **DirectoryInfo** type is derived from the **FileSystemInfo**
type. Therefore, both of these examples return **True**.
diff --git a/reference/7.6/Microsoft.PowerShell.Core/About/about_Updatable_Help.md b/reference/7.6/Microsoft.PowerShell.Core/About/about_Updatable_Help.md
index 6e887b429293..c4ba415ee117 100644
--- a/reference/7.6/Microsoft.PowerShell.Core/About/about_Updatable_Help.md
+++ b/reference/7.6/Microsoft.PowerShell.Core/About/about_Updatable_Help.md
@@ -133,7 +133,7 @@ Update-Help -Module Microsoft.PowerShell.Security
## Permissions for updatable help
-To update help for the modules in the directory `$pshome/Modules`, you must be
+To update help for the modules in the directory `$PSHOME/Modules`, you must be
member of the Administrators group on the computer.
If you aren't a member of the Administrators group, you can't update help for