Skip to content

Commit 83335c2

Browse files
committed
Update PS7.6-p5 release notes and other docs
1 parent 9589939 commit 83335c2

File tree

11 files changed

+193
-30
lines changed

11 files changed

+193
-30
lines changed

reference/7.4/PSReadLine/About/about_PSReadLine_Functions.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: >
33
This article documents the functions provided by PSReadLine. These functions
44
can be bound to keystrokes for easy access and invocation.
55
Locale: en-US
6-
ms.date: 03/03/2025
6+
ms.date: 10/01/2025
77
online version: https://learn.microsoft.com/powershell/module/psreadline/about/about_psreadline_functions?view=powershell-7.4&WT.mc_id=ps-gethelp
88
schema: 2.0.0
99
title: about_PSReadLine_Functions
@@ -1179,9 +1179,13 @@ Similarly, you can use this with other operations, like `<Delete>` or
11791179

11801180
### InvokePrompt
11811181

1182-
Erases the current prompt and calls the prompt function to redisplay the
1183-
prompt. Useful for custom key handlers that change state. For example, change
1184-
the current directory.
1182+
Attempt to erase the current prompt and call the prompt function to redisplay
1183+
the prompt. Useful for custom key handlers that change state. For example,
1184+
change the current directory. This method can't overwrite a prompt that has
1185+
left the screen buffer.
1186+
1187+
Calls to InvokePrompt with no Y position argument immediately return if the
1188+
prompt can't be overwritten. This change was made in PSReadLine v2.4.3-beta3.
11851189

11861190
- Function is unbound.
11871191

reference/7.5/PSReadLine/About/about_PSReadLine_Functions.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: >
33
This article documents the functions provided by PSReadLine. These functions
44
can be bound to keystrokes for easy access and invocation.
55
Locale: en-US
6-
ms.date: 03/03/2025
6+
ms.date: 10/01/2025
77
online version: https://learn.microsoft.com/powershell/module/psreadline/about/about_psreadline_functions?view=powershell-7.5&WT.mc_id=ps-gethelp
88
schema: 2.0.0
99
title: about_PSReadLine_Functions
@@ -1179,9 +1179,13 @@ Similarly, you can use this with other operations, like `<Delete>` or
11791179

11801180
### InvokePrompt
11811181

1182-
Erases the current prompt and calls the prompt function to redisplay the
1183-
prompt. Useful for custom key handlers that change state. For example, change
1184-
the current directory.
1182+
Attempt to erase the current prompt and call the prompt function to redisplay
1183+
the prompt. Useful for custom key handlers that change state. For example,
1184+
change the current directory. This method can't overwrite a prompt that has
1185+
left the screen buffer.
1186+
1187+
Calls to InvokePrompt with no Y position argument immediately return if the
1188+
prompt can't be overwritten. This change was made in PSReadLine v2.4.3-beta3.
11851189

11861190
- Function is unbound.
11871191

reference/7.6/Microsoft.PowerShell.Core/About/about_Arrays.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes arrays, which are data structures designed to store collections of items.
33
Locale: en-US
4-
ms.date: 01/03/2025
4+
ms.date: 10/01/2025
55
no-loc: [Count, Length, LongLength, Rank, ForEach, Clear, Default, First, Last, SkipUntil, Until, Split, Tuple]
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_arrays?view=powershell-7.6&WT.mc_id=ps-gethelp
77
schema: 2.0.0
@@ -515,6 +515,13 @@ ForEach(string methodName)
515515
ForEach(string methodName, object[] arguments)
516516
```
517517

518+
PowerShell 7.6-preview.5 added `PSForEach()` as an alias for the `ForEach()`
519+
method and `PSWhere()` as an alias for the `Where()` method. Use these aliases
520+
to avoid conflicts with `ForEach()` and `Where()` that might be defined on the
521+
base class of the object. For example, the `System.Collections.Generic.List<T>`
522+
class defines its own `ForEach()` method. Use `PSForEach()` to avoid calling
523+
the base class method.
524+
518525
#### ForEach(scriptblock expression)
519526

520527
#### ForEach(scriptblock expression, object[] arguments)
@@ -671,6 +678,13 @@ hi
671678
there
672679
```
673680

681+
PowerShell 7.6-preview.5 added `PSForEach()` as an alias for the `ForEach()`
682+
method and `PSWhere()` as an alias for the `Where()` method. Use these aliases
683+
to avoid conflicts with `ForEach()` and `Where()` that might be defined on the
684+
base class of the object. For example, the `System.Collections.Generic.List<T>`
685+
class defines its own `ForEach()` method. Use `PSForEach()` to avoid calling
686+
the base class method.
687+
674688
#### Default
675689

676690
The `Default` mode filters items using the `Expression` scriptblock.

reference/7.6/Microsoft.PowerShell.Core/About/about_Environment_Variables.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes how to access and manage environment variables in PowerShell.
33
Locale: en-US
4-
ms.date: 08/27/2025
4+
ms.date: 10/01/2025
55
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_environment_variables?view=powershell-7.6&WT.mc_id=ps-gethelp
66
schema: 2.0.0
77
title: about_Environment_Variables
@@ -20,6 +20,7 @@ programs. PowerShell creates the following environment variables:
2020
- `POWERSHELL_TELEMETRY_OPTOUT`
2121
- `POWERSHELL_DISTRIBUTION_CHANNEL`
2222
- `POWERSHELL_UPDATECHECK`
23+
- `POWERSHELL_DIAGNOSTICS_OPTOUT`
2324
- `PSExecutionPolicyPreference`
2425
- `PSModulePath`
2526
- `PSModuleAnalysisCachePath`
@@ -413,6 +414,21 @@ The environment variables that store preferences include:
413414
PowerShell process. See the previous sections for information about creating
414415
persistent environment variables.
415416

417+
- `POWERSHELL_DIAGNOSTICS_OPTOUT`
418+
419+
This environment variable was added in PowerShell 7.6-preview.5. By default,
420+
PowerShell creates a named pipe that is uses for Interprocess Communication
421+
(IPC), such as `Enter-PSHostProcess`. PowerShell creates the named pipe at
422+
startup so that it's available for use when needed.
423+
424+
On non-Windows platforms, named pipes are implemented as files in the `/tmp`
425+
folder. If PowerShell crashes, these files may not be deleted. Over time,
426+
these files can accumulate.
427+
428+
Beginning in PowerShell 7.6, `POWERSHELL_DIAGNOSTICS_OPTOUT` is set to
429+
`false`. To turn off the creation of the named pipe, set the environment
430+
variable to `true`, `yes`, or `1`.
431+
416432
- `PSExecutionPolicyPreference`
417433

418434
Stores the execution policy set for the current session. This environment

reference/7.6/Microsoft.PowerShell.Core/About/about_Intrinsic_Members.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes automatic members in all PowerShell objects
33
Locale: en-US
4-
ms.date: 01/03/2025
4+
ms.date: 10/01/2025
55
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_Intrinsic_Members?view=powershell-7.6&WT.mc_id=ps-gethelp
66
schema: 2.0.0
77
title: about_Intrinsic_Members
@@ -165,6 +165,13 @@ The `ForEach()` and `Where()` methods are available to all PowerShell objects.
165165
However, they're most useful when working with collections. For more
166166
information on how to use these methods, see [about_Arrays][01].
167167

168+
PowerShell 7.6-preview.5 added `PSForEach()` as an alias for the `ForEach()`
169+
method and `PSWhere()` as an alias for the `Where()` method. Use these aliases
170+
to avoid conflicts with `ForEach()` and `Where()` that might be defined on the
171+
base class of the object. For example, the `System.Collections.Generic.List<T>`
172+
class defines its own `ForEach()` method. Use `PSForEach()` to avoid calling
173+
the base class method.
174+
168175
## Properties
169176

170177
Not all scalar type have **Count** or **Length** properties in the base type.

reference/7.6/Microsoft.PowerShell.Core/Register-ArgumentCompleter.md

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,21 @@ Registers a custom argument completer.
1919
### NativeSet
2020

2121
```
22-
Register-ArgumentCompleter -CommandName <String[]> -ScriptBlock <ScriptBlock> [-Native]
22+
Register-ArgumentCompleter -CommandName <string[]> -ScriptBlock <scriptblock> [-Native]
2323
[<CommonParameters>]
2424
```
2525

2626
### PowerShellSet
2727

2828
```
29-
Register-ArgumentCompleter [-CommandName <String[]>] -ParameterName <String>
30-
-ScriptBlock <ScriptBlock> [<CommonParameters>]
29+
Register-ArgumentCompleter -ParameterName <string> -ScriptBlock <scriptblock>
30+
[-CommandName <string[]>] [<CommonParameters>]
31+
```
32+
33+
### NativeFallbackSet
34+
35+
```
36+
Register-ArgumentCompleter -ScriptBlock <scriptblock> [-NativeFallback] [<CommonParameters>]
3137
```
3238

3339
## DESCRIPTION
@@ -220,6 +226,30 @@ Accept pipeline input: False
220226
Accept wildcard characters: False
221227
```
222228
229+
### -NativeFallback
230+
231+
When you use this parameter, PowerShell registers a cover-all argument completer for native
232+
commands. When a native command doesn't have a specific completer for it, it uses the cover-all
233+
completer. A cover-all completer allows a module like Microsoft.PowerShell.UnixTabCompletion to be
234+
registered to provide tab completion for many native commands on Linux and macOS systems.
235+
236+
> [!NOTE]
237+
> You can only register one cover-all completer.
238+
239+
This parameter was added in PowerShell 7.6-preview.5.
240+
241+
```yaml
242+
Type: System.Management.Automation.SwitchParameter
243+
Parameter Sets: NativeFallbackSet
244+
Aliases:
245+
246+
Required: False
247+
Position: Named
248+
Default value: None
249+
Accept pipeline input: False
250+
Accept wildcard characters: False
251+
```
252+
223253
### -ParameterName
224254
225255
Specifies the name of the parameter the argument completer applies to. The type for specified

reference/7.6/PSReadLine/About/about_PSReadLine_Functions.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: >
33
This article documents the functions provided by PSReadLine. These functions
44
can be bound to keystrokes for easy access and invocation.
55
Locale: en-US
6-
ms.date: 03/03/2025
6+
ms.date: 10/01/2025
77
online version: https://learn.microsoft.com/powershell/module/psreadline/about/about_psreadline_functions?view=powershell-7.6&WT.mc_id=ps-gethelp
88
schema: 2.0.0
99
title: about_PSReadLine_Functions
@@ -1179,9 +1179,13 @@ Similarly, you can use this with other operations, like `<Delete>` or
11791179

11801180
### InvokePrompt
11811181

1182-
Erases the current prompt and calls the prompt function to redisplay the
1183-
prompt. Useful for custom key handlers that change state. For example, change
1184-
the current directory.
1182+
Attempt to erase the current prompt and call the prompt function to redisplay
1183+
the prompt. Useful for custom key handlers that change state. For example,
1184+
change the current directory. This method can't overwrite a prompt that has
1185+
left the screen buffer.
1186+
1187+
Calls to InvokePrompt with no Y position argument immediately return if the
1188+
prompt can't be overwritten. This change was made in PSReadLine v2.4.3-beta3.
11851189

11861190
- Function is unbound.
11871191

reference/docs-conceptual/install/Installing-PowerShell-on-Windows.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Information about installing PowerShell on Windows
3-
ms.date: 10/09/2025
3+
ms.date: 10/01/2025
44
title: Installing PowerShell on Windows
55
---
66
# Installing PowerShell on Windows
@@ -42,7 +42,7 @@ winget search Microsoft.PowerShell
4242
Name Id Version Source
4343
---------------------------------------------------------------
4444
PowerShell Microsoft.PowerShell 7.5.3.0 winget
45-
PowerShell Preview Microsoft.PowerShell.Preview 7.6.0.4 winget
45+
PowerShell Preview Microsoft.PowerShell.Preview 7.6.0.5 winget
4646
```
4747

4848
Install PowerShell or PowerShell Preview using the `id` parameter

reference/docs-conceptual/install/install-rhel.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Information about installing PowerShell on Red Hat Enterprise Linux (RHEL)
3-
ms.date: 07/03/2025
3+
ms.date: 10/01/2025
44
title: Installing PowerShell on Red Hat Enterprise Linux (RHEL)
55
---
66
# Installing PowerShell on Red Hat Enterprise Linux (RHEL)
@@ -29,7 +29,7 @@ known as _PMC_.
2929
Installing PowerShell from PMC is the preferred method of installation.
3030

3131
> [!NOTE]
32-
> This script only works for supported versions of RHEL.
32+
> This script only works for supported versions of RHEL that are published to PMC.
3333
3434
```sh
3535
###################################
@@ -62,7 +62,8 @@ sudo dnf install powershell -y
6262
## Installation via direct download
6363

6464
PowerShell 7.2 introduced a universal package that makes installation easier. Download the universal
65-
package from the [releases][02] page onto your RHEL machine.
65+
package from the [releases][02] page onto your RHEL machine. Use this method to install PowerShell
66+
on systems running RHEL 10.
6667

6768
The link to the current version is:
6869

reference/docs-conceptual/security/security-features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ security.
111111
> [!IMPORTANT]
112112
> You must use a secure transport layer to ensure secure data transfer over PSRP.
113113
114-
Beginning in PowerShell v7.6-preview5, the key exchange was deprecated. The version of PSRP was
114+
Beginning in PowerShell v7.6-preview.5, the key exchange was deprecated. The version of PSRP was
115115
incremented to v2.4 and includes the following changes:
116116

117117
- The following PSRP messages are deprecated when both client and server are v2.4 or higher:

0 commit comments

Comments
 (0)