Skip to content

Commit bfc1b6c

Browse files
sdwheelerDCtheGeek
authored andcommitted
Fix #4128 - fix path typo in v3-v51 (#4130)
1 parent 53c7f62 commit bfc1b6c

File tree

5 files changed

+32
-106
lines changed

5 files changed

+32
-106
lines changed

reference/3.0/Microsoft.PowerShell.Core/About/about_profiles.md

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ title: about_Profiles
77
# About Profiles
88

99
## SHORT DESCRIPTION
10-
1110
Describes how to create and use a PowerShell profile.
1211

1312
## LONG DESCRIPTION
@@ -41,11 +40,12 @@ profile has the highest precedence.
4140

4241
|Description | Path |
4342
|--------------------------|------------------------------------------|
43+
|All Users, All Hosts |$PsHome\Profile.ps1 |
44+
|All Users, Current Host |$PsHome\Microsoft.PowerShell_profile.ps1 |
45+
|Current User, All Hosts |$Home\\[My ]Documents\\WindowsPowerShell |
46+
| | \\Profile.ps1 |
4447
|Current user, Current Host|$Home\\[My ]Documents\\WindowsPowerShell |
4548
| | \\Microsoft.PowerShell_profile.ps1 |
46-
|Current User, All Hosts |$Home\\[My ]Documents\\Profile.ps1 |
47-
|All Users, Current Host |$PsHome\Microsoft.PowerShell_profile.ps1 |
48-
|All Users, All Hosts |$PsHome\Profile.ps1 |
4949

5050
The profile paths include the following variables:
5151

@@ -60,9 +60,9 @@ supports the following host-specific profiles.
6060

6161
|Description | Path |
6262
|--------------------------|-------------------------------------------|
63+
|All users, Current Host |$PsHome\Microsoft.PowerShellISE_profile.ps1|
6364
|Current user, Current Host|$Home\\[My ]Documents\\WindowsPowerShell |
6465
| | \\Microsoft.PowerShellISE_profile.ps1 |
65-
|All users, Current Host |$PsHome\Microsoft.PowerShellISE_profile.ps1|
6666

6767
In PowerShell Help, the "CurrentUser, Current Host" profile is the profile
6868
most often referred to as "your PowerShell profile".
@@ -97,7 +97,7 @@ in each PowerShell host application that you use.
9797
To see the current values of the `$Profile` variable, type:
9898

9999
```powershell
100-
$profile | Get-Member -MemberType NoteProperty
100+
$profile | Get-Member -Type NoteProperty
101101
```
102102

103103
You can use the `$Profile` variable in many commands. For example, the
@@ -166,7 +166,7 @@ that are specific to a host application, such as a command that sets the
166166
background color for a host application, in a profile that is specific to that
167167
host application.
168168

169-
If you are an administrator who is customizing Windows PowerShell for many
169+
If you are an administrator who is customizing PowerShell for many
170170
users, follow these guidelines:
171171

172172
- Store the common items in the `$profile.AllUsersAllHosts` profile
@@ -212,19 +212,6 @@ Current Host" profile. For example, add the following command:
212212
function Pro {notepad $profile.CurrentUserAllHosts}
213213
```
214214

215-
### Add a function that opens PowerShell Help in a compiled HTML
216-
217-
Help file (.chm)
218-
219-
```powershell
220-
function Get-CHM {
221-
Invoke-Item -Path "$env:windir\help\mui\0409\WindowsPowerShellHelp.chm"
222-
}
223-
```
224-
225-
This function opens the English version of the .chm file. However, you can
226-
replace the language code (0409) to open other versions of the .chm file.
227-
228215
### Add a function that lists the aliases for any cmdlet
229216

230217
```powershell

reference/4.0/Microsoft.PowerShell.Core/About/about_profiles.md

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ schema: 2.0.0
44
keywords: powershell,cmdlet
55
title: about_Profiles
66
---
7-
87
# About Profiles
98

109
## SHORT DESCRIPTION
11-
1210
Describes how to create and use a PowerShell profile.
1311

1412
## LONG DESCRIPTION
@@ -42,11 +40,12 @@ profile has the highest precedence.
4240

4341
|Description | Path |
4442
|--------------------------|------------------------------------------|
43+
|All Users, All Hosts |$PsHome\Profile.ps1 |
44+
|All Users, Current Host |$PsHome\Microsoft.PowerShell_profile.ps1 |
45+
|Current User, All Hosts |$Home\\[My ]Documents\\WindowsPowerShell |
46+
| | \\Profile.ps1 |
4547
|Current user, Current Host|$Home\\[My ]Documents\\WindowsPowerShell |
4648
| | \\Microsoft.PowerShell_profile.ps1 |
47-
|Current User, All Hosts |$Home\\[My ]Documents\\Profile.ps1 |
48-
|All Users, Current Host |$PsHome\Microsoft.PowerShell_profile.ps1 |
49-
|All Users, All Hosts |$PsHome\Profile.ps1 |
5049

5150
The profile paths include the following variables:
5251

@@ -61,9 +60,9 @@ supports the following host-specific profiles.
6160

6261
|Description | Path |
6362
|--------------------------|-------------------------------------------|
63+
|All users, Current Host |$PsHome\Microsoft.PowerShellISE_profile.ps1|
6464
|Current user, Current Host|$Home\\[My ]Documents\\WindowsPowerShell |
6565
| | \\Microsoft.PowerShellISE_profile.ps1 |
66-
|All users, Current Host |$PsHome\Microsoft.PowerShellISE_profile.ps1|
6766

6867
In PowerShell Help, the "CurrentUser, Current Host" profile is the profile
6968
most often referred to as "your PowerShell profile".
@@ -167,7 +166,7 @@ that are specific to a host application, such as a command that sets the
167166
background color for a host application, in a profile that is specific to that
168167
host application.
169168

170-
If you are an administrator who is customizing Windows PowerShell for many
169+
If you are an administrator who is customizing PowerShell for many
171170
users, follow these guidelines:
172171

173172
- Store the common items in the `$profile.AllUsersAllHosts` profile
@@ -213,18 +212,6 @@ Current Host" profile. For example, add the following command:
213212
function Pro {notepad $profile.CurrentUserAllHosts}
214213
```
215214

216-
### Add a function that opens PowerShell Help in a compiled HTML
217-
Help file (.chm)
218-
219-
```powershell
220-
function Get-CHM {
221-
Invoke-Item -Path "$env:windir\help\mui\0409\WindowsPowerShellHelp.chm"
222-
}
223-
```
224-
225-
This function opens the English version of the .chm file. However, you can
226-
replace the language code (0409) to open other versions of the .chm file.
227-
228215
### Add a function that lists the aliases for any cmdlet
229216

230217
```powershell

reference/5.0/Microsoft.PowerShell.Core/About/about_profiles.md

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ profile has the highest precedence.
4040

4141
|Description | Path |
4242
|--------------------------|------------------------------------------|
43+
|All Users, All Hosts |$PsHome\Profile.ps1 |
44+
|All Users, Current Host |$PsHome\Microsoft.PowerShell_profile.ps1 |
45+
|Current User, All Hosts |$Home\\[My ]Documents\\WindowsPowerShell |
46+
| | \\Profile.ps1 |
4347
|Current user, Current Host|$Home\\[My ]Documents\\WindowsPowerShell |
4448
| | \\Microsoft.PowerShell_profile.ps1 |
45-
|Current User, All Hosts |$Home\\[My ]Documents\\Profile.ps1 |
46-
|All Users, Current Host |$PsHome\Microsoft.PowerShell_profile.ps1 |
47-
|All Users, All Hosts |$PsHome\Profile.ps1 |
4849

4950
The profile paths include the following variables:
5051

@@ -59,9 +60,9 @@ supports the following host-specific profiles.
5960

6061
|Description | Path |
6162
|--------------------------|-------------------------------------------|
63+
|All users, Current Host |$PsHome\Microsoft.PowerShellISE_profile.ps1|
6264
|Current user, Current Host|$Home\\[My ]Documents\\WindowsPowerShell |
6365
| | \\Microsoft.PowerShellISE_profile.ps1 |
64-
|All users, Current Host |$PsHome\Microsoft.PowerShellISE_profile.ps1|
6566

6667
In PowerShell Help, the "CurrentUser, Current Host" profile is the profile
6768
most often referred to as "your PowerShell profile".
@@ -165,7 +166,7 @@ that are specific to a host application, such as a command that sets the
165166
background color for a host application, in a profile that is specific to that
166167
host application.
167168

168-
If you are an administrator who is customizing Windows PowerShell for many
169+
If you are an administrator who is customizing PowerShell for many
169170
users, follow these guidelines:
170171

171172
- Store the common items in the `$profile.AllUsersAllHosts` profile
@@ -211,19 +212,6 @@ Current Host" profile. For example, add the following command:
211212
function Pro {notepad $profile.CurrentUserAllHosts}
212213
```
213214

214-
### Add a function that opens PowerShell Help in a compiled HTML
215-
216-
Help file (.chm)
217-
218-
```powershell
219-
function Get-CHM {
220-
Invoke-Item -Path "$env:windir\help\mui\0409\WindowsPowerShellHelp.chm"
221-
}
222-
```
223-
224-
This function opens the English version of the .chm file. However, you can
225-
replace the language code (0409) to open other versions of the .chm file.
226-
227215
### Add a function that lists the aliases for any cmdlet
228216

229217
```powershell

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

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ schema: 2.0.0
44
keywords: powershell,cmdlet
55
title: about_Profiles
66
---
7-
87
# About Profiles
98

109
## SHORT DESCRIPTION
11-
1210
Describes how to create and use a PowerShell profile.
1311

1412
## LONG DESCRIPTION
@@ -42,11 +40,12 @@ profile has the highest precedence.
4240

4341
|Description | Path |
4442
|--------------------------|------------------------------------------|
43+
|All Users, All Hosts |$PsHome\Profile.ps1 |
44+
|All Users, Current Host |$PsHome\Microsoft.PowerShell_profile.ps1 |
45+
|Current User, All Hosts |$Home\\[My ]Documents\\WindowsPowerShell |
46+
| | \\Profile.ps1 |
4547
|Current user, Current Host|$Home\\[My ]Documents\\WindowsPowerShell |
4648
| | \\Microsoft.PowerShell_profile.ps1 |
47-
|Current User, All Hosts |$Home\\[My ]Documents\\Profile.ps1 |
48-
|All Users, Current Host |$PsHome\Microsoft.PowerShell_profile.ps1 |
49-
|All Users, All Hosts |$PsHome\Profile.ps1 |
5049

5150
The profile paths include the following variables:
5251

@@ -61,9 +60,9 @@ supports the following host-specific profiles.
6160

6261
|Description | Path |
6362
|--------------------------|-------------------------------------------|
63+
|All users, Current Host |$PsHome\Microsoft.PowerShellISE_profile.ps1|
6464
|Current user, Current Host|$Home\\[My ]Documents\\WindowsPowerShell |
6565
| | \\Microsoft.PowerShellISE_profile.ps1 |
66-
|All users, Current Host |$PsHome\Microsoft.PowerShellISE_profile.ps1|
6766

6867
In PowerShell Help, the "CurrentUser, Current Host" profile is the profile
6968
most often referred to as "your PowerShell profile".
@@ -167,7 +166,7 @@ that are specific to a host application, such as a command that sets the
167166
background color for a host application, in a profile that is specific to that
168167
host application.
169168

170-
If you are an administrator who is customizing Windows PowerShell for many
169+
If you are an administrator who is customizing PowerShell for many
171170
users, follow these guidelines:
172171

173172
- Store the common items in the `$profile.AllUsersAllHosts` profile
@@ -213,18 +212,6 @@ Current Host" profile. For example, add the following command:
213212
function Pro {notepad $profile.CurrentUserAllHosts}
214213
```
215214

216-
### Add a function that opens PowerShell Help in a compiled HTML
217-
Help file (.chm)
218-
219-
```powershell
220-
function Get-CHM {
221-
Invoke-Item -Path "$env:windir\help\mui\0409\WindowsPowerShellHelp.chm"
222-
}
223-
```
224-
225-
This function opens the English version of the .chm file. However, you can
226-
replace the language code (0409) to open other versions of the .chm file.
227-
228215
### Add a function that lists the aliases for any cmdlet
229216

230217
```powershell

reference/6/Microsoft.PowerShell.Core/About/about_Profiles.md

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ For example, the PowerShell console supports the following basic
3838
profile files. The profiles are listed in precedence order. The first
3939
profile has the highest precedence.
4040

41-
|Description | Path |
42-
|--------------------------|---------------------------------------------|
43-
|Current user, Current Host|$Home\\[My]Documents\\PowerShell |
44-
| | \\Microsoft.PowerShell_profile.ps1 |
45-
|Current User, All Hosts |$Home\\[My]Documents\\PowerShell\Profile.ps1 |
46-
|All Users, Current Host |$PsHome\Microsoft.PowerShell_profile.ps1 |
47-
|All Users, All Hosts |$PsHome\Profile.ps1 |
41+
|Description | Path |
42+
|--------------------------|----------------------------------------------|
43+
|All Users, All Hosts |$PsHome\Profile.ps1 |
44+
|All Users, Current Host |$PsHome\Microsoft.PowerShell_profile.ps1 |
45+
|Current User, All Hosts |$Home\\[My ]Documents\\PowerShell\Profile.ps1 |
46+
|Current user, Current Host|$Home\\[My ]Documents\\PowerShell |
47+
| | \\Microsoft.PowerShell_profile.ps1 |
4848

4949
The profile paths include the following variables:
5050

@@ -53,16 +53,6 @@ PowerShell
5353

5454
- The `$Home` variable, which stores the current user's home directory
5555

56-
In addition, other programs that host PowerShell can support their own
57-
profiles. For example, PowerShell Integrated Scripting Environment (ISE)
58-
supports the following host-specific profiles.
59-
60-
|Description | Path |
61-
|--------------------------|-------------------------------------------|
62-
|Current user, Current Host|$Home\\[My]Documents\\WindowsPowerShell |
63-
| | \\Microsoft.PowerShellISE_profile.ps1 |
64-
|All users, Current Host |$PsHome\Microsoft.PowerShellISE_profile.ps1|
65-
6656
In PowerShell Help, the "CurrentUser, Current Host" profile is the profile
6757
most often referred to as "your PowerShell profile".
6858

@@ -211,19 +201,6 @@ Current Host" profile. For example, add the following command:
211201
function Pro {notepad $profile.CurrentUserAllHosts}
212202
```
213203

214-
### Add a function that opens PowerShell Help in a compiled HTML
215-
216-
Help file (.chm)
217-
218-
```powershell
219-
function Get-CHM {
220-
Invoke-Item -Path "$env:windir\help\mui\0409\WindowsPowerShellHelp.chm"
221-
}
222-
```
223-
224-
This function opens the English version of the .chm file. However, you can
225-
replace the language code (0409) to open other versions of the .chm file.
226-
227204
### Add a function that lists the aliases for any cmdlet
228205

229206
```powershell

0 commit comments

Comments
 (0)