From 84141b06e2b4b1d738a3485c4789beffb49e1a14 Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Tue, 7 May 2024 13:01:28 -0500 Subject: [PATCH] Update path information for $PSHOME --- .../About/about_Automatic_Variables.md | 6 +++--- .../About/about_Automatic_Variables.md | 10 +++++----- .../About/about_Automatic_Variables.md | 10 +++++----- .../About/about_Automatic_Variables.md | 10 +++++----- .../About/about_Automatic_Variables.md | 10 +++++----- 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md index e88c67c29e59..d1f1f092cc7b 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md +++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md @@ -1,7 +1,7 @@ --- description: Describes variables that store state information for PowerShell. These variables are created and maintained by PowerShell. Locale: en-US -ms.date: 01/19/2024 +ms.date: 05/07/2024 no-loc: [Reset, Current, Background, Blink, Bold, Foreground, Formatting, Hidden, Italic, Reset, Reverse, Underline] online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_automatic_variables?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 @@ -551,10 +551,10 @@ available for use in module manifest files, whereas `$PSVersionTable` isn't. Contains the full path of the installation directory for PowerShell, typically, `$env:windir\System32\PowerShell\v1.0` in Windows systems. You can use this variable in the paths of PowerShell files. For example, the following command -searches the conceptual Help topics for the word **variable**: +searches the conceptual Help topics for the word **Help**: ```powershell -Select-String -Pattern Variable -Path $pshome\*.txt +Select-String -Pattern Help -Path $PSHOME\en-US\*.txt ``` ### $PSItem diff --git a/reference/7.2/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md b/reference/7.2/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md index bb680d275f1e..ae0135d9b5ff 100644 --- a/reference/7.2/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md +++ b/reference/7.2/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md @@ -1,7 +1,7 @@ --- description: Describes variables that store state information for PowerShell. These variables are created and maintained by PowerShell. Locale: en-US -ms.date: 01/19/2024 +ms.date: 05/07/2024 no-loc: [Reset, Current, Background, Blink, Bold, Foreground, Formatting, Hidden, Italic, Reset, Reverse, Underline] online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_automatic_variables?view=powershell-7.2&WT.mc_id=ps-gethelp schema: 2.0.0 @@ -585,12 +585,12 @@ available for use in module manifest files, whereas `$PSVersionTable` isn't. ### $PSHOME Contains the full path of the installation directory for PowerShell, typically, -`$env:windir\System32\PowerShell\v1.0` in Windows systems. You can use this -variable in the paths of PowerShell files. For example, the following command -searches the conceptual Help topics for the word **variable**: +`C:\Program Files\PowerShell\7` in Windows systems. You can use this variable +in the paths of PowerShell files. For example, the following command searches +the conceptual Help topics for the word **Help**: ```powershell -Select-String -Pattern Variable -Path $pshome\*.txt +Select-String -Pattern Help -Path $PSHOME\en-US\*.txt ``` ### $PSItem diff --git a/reference/7.3/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md b/reference/7.3/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md index 4542a2dc514e..c837eee7f71c 100644 --- a/reference/7.3/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md +++ b/reference/7.3/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md @@ -1,7 +1,7 @@ --- description: Describes variables that store state information for PowerShell. These variables are created and maintained by PowerShell. Locale: en-US -ms.date: 01/19/2024 +ms.date: 05/07/2024 no-loc: [Reset, Current, Background, Blink, Bold, Foreground, Formatting, Hidden, Italic, Reset, Reverse, Underline] online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_automatic_variables?view=powershell-7.3&WT.mc_id=ps-gethelp schema: 2.0.0 @@ -585,12 +585,12 @@ available for use in module manifest files, whereas `$PSVersionTable` isn't. ### $PSHOME Contains the full path of the installation directory for PowerShell, typically, -`$env:windir\System32\PowerShell\v1.0` in Windows systems. You can use this -variable in the paths of PowerShell files. For example, the following command -searches the conceptual Help topics for the word **variable**: +`C:\Program Files\PowerShell\7` in Windows systems. You can use this variable +in the paths of PowerShell files. For example, the following command searches +the conceptual Help topics for the word **Help**: ```powershell -Select-String -Pattern Variable -Path $pshome\*.txt +Select-String -Pattern Help -Path $PSHOME\en-US\*.txt ``` ### $PSItem diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md index 8e08d38c2646..02404d4cd62a 100644 --- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md +++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md @@ -1,7 +1,7 @@ --- description: Describes variables that store state information for PowerShell. These variables are created and maintained by PowerShell. Locale: en-US -ms.date: 01/19/2024 +ms.date: 05/07/2024 no-loc: [Reset, Current, Background, Blink, Bold, Foreground, Formatting, Hidden, Italic, Reset, Reverse, Underline] online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_automatic_variables?view=powershell-7.4&WT.mc_id=ps-gethelp schema: 2.0.0 @@ -585,12 +585,12 @@ available for use in module manifest files, whereas `$PSVersionTable` isn't. ### $PSHOME Contains the full path of the installation directory for PowerShell, typically, -`$env:windir\System32\PowerShell\v1.0` in Windows systems. You can use this -variable in the paths of PowerShell files. For example, the following command -searches the conceptual Help topics for the word **variable**: +`C:\Program Files\PowerShell\7` in Windows systems. You can use this variable +in the paths of PowerShell files. For example, the following command searches +the conceptual Help topics for the word **Help**: ```powershell -Select-String -Pattern Variable -Path $pshome\*.txt +Select-String -Pattern Help -Path $PSHOME\en-US\*.txt ``` ### $PSItem diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md index c65236c0a334..e3ec7c9fe38e 100644 --- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md +++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md @@ -1,7 +1,7 @@ --- description: Describes variables that store state information for PowerShell. These variables are created and maintained by PowerShell. Locale: en-US -ms.date: 01/19/2024 +ms.date: 05/07/2024 no-loc: [Reset, Current, Background, Blink, Bold, Foreground, Formatting, Hidden, Italic, Reset, Reverse, Underline] online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_automatic_variables?view=powershell-7.5&WT.mc_id=ps-gethelp schema: 2.0.0 @@ -585,12 +585,12 @@ available for use in module manifest files, whereas `$PSVersionTable` isn't. ### $PSHOME Contains the full path of the installation directory for PowerShell, typically, -`$env:windir\System32\PowerShell\v1.0` in Windows systems. You can use this -variable in the paths of PowerShell files. For example, the following command -searches the conceptual Help topics for the word **variable**: +`C:\Program Files\PowerShell\7` in Windows systems. You can use this variable +in the paths of PowerShell files. For example, the following command searches +the conceptual Help topics for the word **Help**: ```powershell -Select-String -Pattern Variable -Path $pshome\*.txt +Select-String -Pattern Help -Path $PSHOME\en-US\*.txt ``` ### $PSItem