Skip to content

Commit 09dc315

Browse files
authored
Updates for release of PS7.6-preview.6 (#12572) (#12591)
* Add cmdlet updates * Fix build errors * Update setup files
1 parent f272164 commit 09dc315

File tree

14 files changed

+302
-132
lines changed

14 files changed

+302
-132
lines changed

reference/5.1/Microsoft.PowerShell.Management/Get-Clipboard.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,15 @@ returned as an array of strings similar to `Get-Content`.
2828

2929
## EXAMPLES
3030

31-
### Example 1: Get the content of the clipboard and display it to the command-line
32-
33-
In this example we have right-clicked on an image in a browser and chose the **Copy** action. The
34-
following command displays the link, as a URL, of the image that is stored in the clipboard.
31+
### Example 1: Get the content of the clipboard
3532

3633
```powershell
34+
Set-Clipboard -Value 'hello world'
3735
Get-Clipboard
3836
```
3937

4038
```Output
41-
https://en.wikipedia.org/wiki/PowerShell
39+
hello world
4240
```
4341

4442
### Example 2: Get the content of the clipboard in a specific format

reference/7.4/Microsoft.PowerShell.Management/Get-Clipboard.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,15 @@ returned as an array of strings similar to `Get-Content`.
3232
3333
## EXAMPLES
3434

35-
### Example 1: Get the content of the clipboard and display it to the command-line
36-
37-
In this example we have copied the text "hello" into the clipboard.
35+
### Example 1: Get the content of the clipboard
3836

3937
```powershell
38+
Set-Clipboard -Value 'hello world'
4039
Get-Clipboard
4140
```
4241

4342
```Output
44-
hello
43+
hello world
4544
```
4645

4746
## PARAMETERS

reference/7.5/Microsoft.PowerShell.Management/Get-Clipboard.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,15 @@ returned as an array of strings similar to `Get-Content`.
3232
3333
## EXAMPLES
3434

35-
### Example 1: Get the content of the clipboard and display it to the command-line
36-
37-
In this example we have copied the text "hello" into the clipboard.
35+
### Example 1: Get the content of the clipboard
3836

3937
```powershell
38+
Set-Clipboard -Value 'hello world'
4039
Get-Clipboard
4140
```
4241

4342
```Output
44-
hello
43+
hello world
4544
```
4645

4746
## PARAMETERS

reference/7.6/Microsoft.PowerShell.Management/Get-Clipboard.md

Lines changed: 51 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Management
5-
ms.date: 11/01/2025
5+
ms.date: 12/10/2025
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-clipboard?view=powershell-7.6&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
aliases:
@@ -18,7 +18,7 @@ Gets the contents of the clipboard.
1818
## SYNTAX
1919

2020
```
21-
Get-Clipboard [-Raw] [<CommonParameters>]
21+
Get-Clipboard [-Raw] [-Delimiter <String[]>] [<CommonParameters>]
2222
```
2323

2424
## DESCRIPTION
@@ -32,20 +32,65 @@ returned as an array of strings similar to `Get-Content`.
3232
3333
## EXAMPLES
3434

35-
### Example 1: Get the content of the clipboard and display it to the command-line
36-
37-
In this example we have copied the text "hello" into the clipboard.
35+
### Example 1: Get the content of the clipboard
3836

3937
```powershell
38+
Set-Clipboard -Value 'hello world'
4039
Get-Clipboard
4140
```
4241

4342
```Output
44-
hello
43+
hello world
44+
```
45+
46+
### Example 2: Get the content of the clipboard using a custom delimiter
47+
48+
This example gets the content of the clipboard. The content is a string containing the pipe
49+
character. `Get-Clipboard` splits the content at each occurrence of the specified delimiter.
50+
51+
```powershell
52+
Set-Clipboard -Value 'line1|line2|line3'
53+
Get-Clipboard -Delimiter '|'
54+
```
55+
56+
```Output
57+
line1
58+
line2
59+
line3
60+
```
61+
62+
### Example 3: Get the content of the clipboard using custom delimiters
63+
64+
This example gets the content of the clipboard delimited by the line ending for both Windows and
65+
Linux.
66+
67+
```powershell
68+
Get-Clipboard -Delimiter "`r`n", "`n"
4569
```
4670

4771
## PARAMETERS
4872

73+
### -Delimiter
74+
75+
Specifies one or more delimiters to use when the clipboard content is returned as an array of
76+
strings. The command splits the contents of the clipboard at each occurrence of any of the specified
77+
delimiters. If not specified, the default delimiter is `[Environment.NewLine]`.
78+
79+
- On Windows, the default delimiter is ``"`r`n"``.
80+
- On Linux and macOS, the default delimiter is ``"`n"``.
81+
82+
```yaml
83+
Type: System.String[]
84+
Parameter Sets: (All)
85+
Aliases:
86+
87+
Required: False
88+
Position: Named
89+
Default value: Platform specific newline
90+
Accept pipeline input: False
91+
Accept wildcard characters: False
92+
```
93+
4994
### -Raw
5095
5196
Gets the entire contents of the clipboard. Multiline text is returned as a single multiline string

reference/7.6/Microsoft.PowerShell.Management/Join-Path.md

Lines changed: 64 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Management
5-
ms.date: 03/25/2025
5+
ms.date: 12/10/2025
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/join-path?view=powershell-7.6&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Join-Path
@@ -16,7 +16,7 @@ Combines a path and a child path into a single path.
1616

1717
```
1818
Join-Path [-Path] <String[]> [-ChildPath] <String> [[-AdditionalChildPath] <String[]>] [-Resolve]
19-
[-Credential <PSCredential>] [<CommonParameters>]
19+
[-Credential <PSCredential>] [-Extension <String>] [<CommonParameters>]
2020
```
2121

2222
## DESCRIPTION
@@ -150,6 +150,46 @@ Join-Path -Path a -ChildPath b, c, d, e, f, g
150150
a\b\c\d\e\f\g
151151
```
152152

153+
### Example 9: Add extension to file without extension
154+
155+
```powershell
156+
Join-Path C:\Temp myfile -Extension txt
157+
```
158+
159+
```Output
160+
C:\Temp\myfile.txt
161+
```
162+
163+
### Example 10: Change existing extension
164+
165+
```powershell
166+
Join-Path C:\Temp myfile.txt -Extension .log
167+
```
168+
169+
```Output
170+
C:\Temp\myfile.log
171+
```
172+
173+
### Example 11: Extension without leading dot
174+
175+
```powershell
176+
Join-Path C:\Temp file.txt -Extension log
177+
```
178+
179+
```Output
180+
C:\Temp\file.log
181+
```
182+
183+
### Example 12: Remove extension with empty string
184+
185+
```powershell
186+
Join-Path C:\Temp file.txt -Extension ""
187+
```
188+
189+
```Output
190+
C:\Temp\file
191+
```
192+
153193
## PARAMETERS
154194

155195
### -AdditionalChildPath
@@ -211,6 +251,28 @@ Accept pipeline input: True (ByPropertyName)
211251
Accept wildcard characters: False
212252
```
213253

254+
### -Extension
255+
256+
Specifies the extension to use for the resulting path. If not specified, the original extension is
257+
preserved. The leading dot in the extension is optional. If omitted, the command adds it
258+
automatically.
259+
260+
- If the path has an existing extension, it's replaced with the specified extension.
261+
- If the path has no extension, the specified extension is added.
262+
- If you provide an empty string, the existing extension is removed.
263+
264+
```yaml
265+
Type: System.String
266+
Parameter Sets: (All)
267+
Aliases:
268+
269+
Required: True
270+
Position: 0
271+
Default value: None
272+
Accept pipeline input: True (ByPropertyName)
273+
Accept wildcard characters: True
274+
```
275+
214276
### -Path
215277

216278
Specifies the main path (or paths) to which the child-path is appended. The value of **Path**

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: How to install PowerShell on Alpine Linux
3-
ms.date: 11/19/2025
3+
ms.date: 12/15/2025
44
title: Install PowerShell on Alpine Linux
55
---
66
# Install PowerShell on Alpine Linux
@@ -21,9 +21,9 @@ with a previous version, reinstall the previous version using the [binary archiv
2121
Installation on Alpine is based on downloading tar.gz package from the [releases][03] page. The URL
2222
to the package depends on the version of PowerShell you want to install.
2323

24-
- PowerShell 7.4 - `https://github.com/PowerShell/PowerShell/releases/download/v7.4.13/powershell-7.4.13-linux-musl-x64.tar.gz`
24+
- PowerShell 7.4 (LTS) - `https://github.com/PowerShell/PowerShell/releases/download/v7.4.13/powershell-7.4.13-linux-musl-x64.tar.gz`
2525
- PowerShell 7.5 - `https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell-7.5.4-linux-musl-x64.tar.gz`
26-
- PowerShell 7.6-preview - `https://github.com/PowerShell/PowerShell/releases/download/v7.6.0-preview.5/powershell-7.6.0-preview.5-linux-musl-x64.tar.gz`
26+
- PowerShell 7.6-preview - `https://github.com/PowerShell/PowerShell/releases/download/v7.6.0-preview.6/powershell-7.6.0-preview.6-linux-musl-x64.tar.gz`
2727

2828
Then, in the terminal, execute the following shell commands to install PowerShell 7.4:
2929

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: How to install PowerShell on Debian Linux
3-
ms.date: 11/19/2025
3+
ms.date: 12/15/2025
44
title: Install PowerShell on Debian
55
---
66
# Install PowerShell on Debian
@@ -75,7 +75,7 @@ The link to the current version is:
7575
- PowerShell 7.5 universal package for supported versions of Debian
7676
- `https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell_7.5.4-1.deb_amd64.deb`
7777
- PowerShell 7.6-preview universal package for supported versions of Debian
78-
- `https://github.com/PowerShell/PowerShell/releases/download/v7.6.0-preview.5/powershell-preview_7.6.0-preview.5-1.deb_amd64.deb`
78+
- `https://github.com/PowerShell/PowerShell/releases/download/v7.6.0-preview.6/powershell-preview_7.6.0-preview.6-1.deb_amd64.deb`
7979

8080
The following shell script downloads and installs the current release of PowerShell. You can
8181
change the URL to download the version of PowerShell that you want to install.

reference/docs-conceptual/install/install-powershell-on-macos.md

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: How to install PowerShell on macOS
3-
ms.date: 11/19/2025
3+
ms.date: 12/15/2025
44
title: Install PowerShell on macOS
55
---
66

@@ -21,8 +21,8 @@ with a previous version, reinstall the previous version using the [binary archiv
2121

2222
There are several ways to install PowerShell on macOS. Choose one of the following methods:
2323

24-
- Install using [Homebrew][05]. Homebrew is the preferred package manager for macOS.
25-
- Install via [Direct Download][06].
24+
- Install using [Homebrew][06]. Homebrew is the preferred package manager for macOS.
25+
- Install via [Direct Download][05].
2626
- Install as [a .NET Global tool][04].
2727
- Install from [binary archives][03].
2828

@@ -124,13 +124,15 @@ brew upgrade powershell-lts
124124
Starting with version 7.2, PowerShell supports the Apple M-series Arm-based processors. Download the
125125
install package from the [releases][11] page onto your Mac. The links to the current versions are:
126126

127+
- PowerShell 7.4 (LTS)
128+
- Arm64 processors - [powershell-7.4.13-osx-arm64.pkg][16]
129+
- x64 processors - [powershell-7.4.13-osx-x64.pkg][18]
127130
- PowerShell 7.5
128131
- Arm64 processors - [powershell-7.5.4-arm64.pkg][20]
129132
- x64 processors - [powershell-7.5.4-osx-x64.pkg][22]
130-
131-
- PowerShell 7.4
132-
- Arm64 processors - [powershell-7.4.13-osx-arm64.pkg][16]
133-
- x64 processors - [powershell-7.4.13-osx-x64.pkg][18]
133+
- PowerShell 7.6-preview
134+
- Arm64 processors - [powershell-7.6.0-preview.6-osx-arm64.pkg][24]
135+
- x64 processors - [powershell-7.6.0-preview.6-osx-x64.pkg][26]
134136

135137
There are two ways to install PowerShell using the Direct Download method.
136138

@@ -152,7 +154,7 @@ Install PowerShell using Finder:
152154
1. Select the **Done** button to close the prompt.
153155

154156
This error message comes from the Gatekeeper feature of macOS. For more information, see
155-
[Safely open apps on your Mac - Apple Support][25].
157+
[Safely open apps on your Mac - Apple Support][29].
156158

157159
After you've tried to open the package, follow these steps:
158160

@@ -210,13 +212,15 @@ dependencies.
210212
Download the install package from the [releases][11] page onto your Mac. The links to the current
211213
versions are:
212214

213-
- PowerShell 7.5-preview
214-
- Arm64 processors - [powershell-7.5.4-osx-arm64.tar.gz][21]
215-
- x64 processors - [powershell-7.5.4-osx-x64.tar.gz][23]
216-
217215
- PowerShell 7.4 (LTS)
218216
- Arm64 processors - [powershell-7.4.13-osx-arm64.tar.gz][17]
219217
- x64 processors - [powershell-7.4.13-osx-x64.tar.gz][19]
218+
- PowerShell 7.5
219+
- Arm64 processors - [powershell-7.5.4-osx-arm64.tar.gz][21]
220+
- x64 processors - [powershell-7.5.4-osx-x64.tar.gz][23]
221+
- PowerShell 7.6-preview
222+
- Arm64 processors - [powershell-7.6.0-preview.6-osx-arm64.tar.gz][25]
223+
- x64 processors - [powershell-7.6.0-preview.6-osx-x64.tar.gz][27]
220224

221225
Use the following commands to install PowerShell from the binary archive. Change the download URL to
222226
match the version you want to install.
@@ -270,7 +274,7 @@ the paths using `sudo rm`.
270274
- Default modules are read from `$PSHOME/Modules`
271275
- PSReadLine history is recorded to `~/.local/share/powershell/PSReadLine/ConsoleHost_history.txt`
272276

273-
PowerShell respects the [XDG Base Directory Specification][24] on macOS.
277+
PowerShell respects the [XDG Base Directory Specification][28] on macOS.
274278

275279
## Supported versions
276280

@@ -293,8 +297,8 @@ support those methods.
293297
[02]: /dotnet/core/tools/global-tools
294298
[03]: #binary-archives
295299
[04]: #install-as-a-net-global-tool
296-
[05]: #install-using-homebrew
297-
[06]: #install-the-package-via-direct-download
300+
[05]: #install-the-package-via-direct-download
301+
[06]: #install-using-homebrew
298302
[07]: #paths
299303
[08]: #supported-versions
300304
[09]: https://aka.ms/powershell-release?tag=lts
@@ -312,5 +316,9 @@ support those methods.
312316
[21]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell-7.5.4-osx-arm64.tar.gz
313317
[22]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell-7.5.4-osx-x64.pkg
314318
[23]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell-7.5.4-osx-x64.tar.gz
315-
[24]: https://specifications.freedesktop.org/basedir/latest/
316-
[25]: https://support.apple.com/102445
319+
[24]: https://github.com/PowerShell/PowerShell/releases/download/v7.6.0-preview.6/powershell-7.6.0-preview.6-osx-arm64.pkg
320+
[25]: https://github.com/PowerShell/PowerShell/releases/download/v7.6.0-preview.6/powershell-7.6.0-preview.6-osx-arm64.tar.gz
321+
[26]: https://github.com/PowerShell/PowerShell/releases/download/v7.6.0-preview.6/powershell-7.6.0-preview.6-osx-x64.pkg
322+
[27]: https://github.com/PowerShell/PowerShell/releases/download/v7.6.0-preview.6/powershell-7.6.0-preview.6-osx-x64.tar.gz
323+
[28]: https://specifications.freedesktop.org/basedir/latest/
324+
[29]: https://support.apple.com/102445

reference/docs-conceptual/install/install-powershell-on-windows-iot-nano.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: How to install PowerShell on Windows IoT and Nano Server.
3-
ms.date: 11/19/2025
3+
ms.date: 12/15/2025
44
title: Install PowerShell on Windows IoT and Nano Server
55
---
66
# Install PowerShell on Windows IoT and Nano Server

0 commit comments

Comments
 (0)