Skip to content

Commit 7529641

Browse files
authored
Update path information for $PSHOME (#11078)
1 parent 847ef5b commit 7529641

5 files changed

Lines changed: 23 additions & 23 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes variables that store state information for PowerShell. These variables are created and maintained by PowerShell.
33
Locale: en-US
4-
ms.date: 01/19/2024
4+
ms.date: 05/07/2024
55
no-loc: [Reset, Current, Background, Blink, Bold, Foreground, Formatting, Hidden, Italic, Reset, Reverse, Underline]
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_automatic_variables?view=powershell-5.1&WT.mc_id=ps-gethelp
77
schema: 2.0.0
@@ -551,10 +551,10 @@ available for use in module manifest files, whereas `$PSVersionTable` isn't.
551551
Contains the full path of the installation directory for PowerShell, typically,
552552
`$env:windir\System32\PowerShell\v1.0` in Windows systems. You can use this
553553
variable in the paths of PowerShell files. For example, the following command
554-
searches the conceptual Help topics for the word **variable**:
554+
searches the conceptual Help topics for the word **Help**:
555555

556556
```powershell
557-
Select-String -Pattern Variable -Path $pshome\*.txt
557+
Select-String -Pattern Help -Path $PSHOME\en-US\*.txt
558558
```
559559

560560
### $PSItem

reference/7.2/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes variables that store state information for PowerShell. These variables are created and maintained by PowerShell.
33
Locale: en-US
4-
ms.date: 01/19/2024
4+
ms.date: 05/07/2024
55
no-loc: [Reset, Current, Background, Blink, Bold, Foreground, Formatting, Hidden, Italic, Reset, Reverse, Underline]
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_automatic_variables?view=powershell-7.2&WT.mc_id=ps-gethelp
77
schema: 2.0.0
@@ -585,12 +585,12 @@ available for use in module manifest files, whereas `$PSVersionTable` isn't.
585585
### $PSHOME
586586

587587
Contains the full path of the installation directory for PowerShell, typically,
588-
`$env:windir\System32\PowerShell\v1.0` in Windows systems. You can use this
589-
variable in the paths of PowerShell files. For example, the following command
590-
searches the conceptual Help topics for the word **variable**:
588+
`C:\Program Files\PowerShell\7` in Windows systems. You can use this variable
589+
in the paths of PowerShell files. For example, the following command searches
590+
the conceptual Help topics for the word **Help**:
591591

592592
```powershell
593-
Select-String -Pattern Variable -Path $pshome\*.txt
593+
Select-String -Pattern Help -Path $PSHOME\en-US\*.txt
594594
```
595595

596596
### $PSItem

reference/7.3/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes variables that store state information for PowerShell. These variables are created and maintained by PowerShell.
33
Locale: en-US
4-
ms.date: 01/19/2024
4+
ms.date: 05/07/2024
55
no-loc: [Reset, Current, Background, Blink, Bold, Foreground, Formatting, Hidden, Italic, Reset, Reverse, Underline]
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_automatic_variables?view=powershell-7.3&WT.mc_id=ps-gethelp
77
schema: 2.0.0
@@ -585,12 +585,12 @@ available for use in module manifest files, whereas `$PSVersionTable` isn't.
585585
### $PSHOME
586586

587587
Contains the full path of the installation directory for PowerShell, typically,
588-
`$env:windir\System32\PowerShell\v1.0` in Windows systems. You can use this
589-
variable in the paths of PowerShell files. For example, the following command
590-
searches the conceptual Help topics for the word **variable**:
588+
`C:\Program Files\PowerShell\7` in Windows systems. You can use this variable
589+
in the paths of PowerShell files. For example, the following command searches
590+
the conceptual Help topics for the word **Help**:
591591

592592
```powershell
593-
Select-String -Pattern Variable -Path $pshome\*.txt
593+
Select-String -Pattern Help -Path $PSHOME\en-US\*.txt
594594
```
595595

596596
### $PSItem

reference/7.4/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes variables that store state information for PowerShell. These variables are created and maintained by PowerShell.
33
Locale: en-US
4-
ms.date: 01/19/2024
4+
ms.date: 05/07/2024
55
no-loc: [Reset, Current, Background, Blink, Bold, Foreground, Formatting, Hidden, Italic, Reset, Reverse, Underline]
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_automatic_variables?view=powershell-7.4&WT.mc_id=ps-gethelp
77
schema: 2.0.0
@@ -585,12 +585,12 @@ available for use in module manifest files, whereas `$PSVersionTable` isn't.
585585
### $PSHOME
586586

587587
Contains the full path of the installation directory for PowerShell, typically,
588-
`$env:windir\System32\PowerShell\v1.0` in Windows systems. You can use this
589-
variable in the paths of PowerShell files. For example, the following command
590-
searches the conceptual Help topics for the word **variable**:
588+
`C:\Program Files\PowerShell\7` in Windows systems. You can use this variable
589+
in the paths of PowerShell files. For example, the following command searches
590+
the conceptual Help topics for the word **Help**:
591591

592592
```powershell
593-
Select-String -Pattern Variable -Path $pshome\*.txt
593+
Select-String -Pattern Help -Path $PSHOME\en-US\*.txt
594594
```
595595

596596
### $PSItem

reference/7.5/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes variables that store state information for PowerShell. These variables are created and maintained by PowerShell.
33
Locale: en-US
4-
ms.date: 01/19/2024
4+
ms.date: 05/07/2024
55
no-loc: [Reset, Current, Background, Blink, Bold, Foreground, Formatting, Hidden, Italic, Reset, Reverse, Underline]
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_automatic_variables?view=powershell-7.5&WT.mc_id=ps-gethelp
77
schema: 2.0.0
@@ -585,12 +585,12 @@ available for use in module manifest files, whereas `$PSVersionTable` isn't.
585585
### $PSHOME
586586

587587
Contains the full path of the installation directory for PowerShell, typically,
588-
`$env:windir\System32\PowerShell\v1.0` in Windows systems. You can use this
589-
variable in the paths of PowerShell files. For example, the following command
590-
searches the conceptual Help topics for the word **variable**:
588+
`C:\Program Files\PowerShell\7` in Windows systems. You can use this variable
589+
in the paths of PowerShell files. For example, the following command searches
590+
the conceptual Help topics for the word **Help**:
591591

592592
```powershell
593-
Select-String -Pattern Variable -Path $pshome\*.txt
593+
Select-String -Pattern Help -Path $PSHOME\en-US\*.txt
594594
```
595595

596596
### $PSItem

0 commit comments

Comments
 (0)