Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,15 @@ returned as an array of strings similar to `Get-Content`.

## EXAMPLES

### Example 1: Get the content of the clipboard and display it to the command-line

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

```powershell
Set-Clipboard -Value 'hello world'
Get-Clipboard
```

```Output
https://en.wikipedia.org/wiki/PowerShell
hello world
```

### Example 2: Get the content of the clipboard in a specific format
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,15 @@ returned as an array of strings similar to `Get-Content`.

## EXAMPLES

### Example 1: Get the content of the clipboard and display it to the command-line

In this example we have copied the text "hello" into the clipboard.
### Example 1: Get the content of the clipboard

```powershell
Set-Clipboard -Value 'hello world'
Get-Clipboard
```

```Output
hello
hello world
```

## PARAMETERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,15 @@ returned as an array of strings similar to `Get-Content`.

## EXAMPLES

### Example 1: Get the content of the clipboard and display it to the command-line

In this example we have copied the text "hello" into the clipboard.
### Example 1: Get the content of the clipboard

```powershell
Set-Clipboard -Value 'hello world'
Get-Clipboard
```

```Output
hello
hello world
```

## PARAMETERS
Expand Down
57 changes: 51 additions & 6 deletions reference/7.6/Microsoft.PowerShell.Management/Get-Clipboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Management
ms.date: 11/01/2025
ms.date: 12/10/2025
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-clipboard?view=powershell-7.6&WT.mc_id=ps-gethelp
schema: 2.0.0
aliases:
Expand All @@ -18,7 +18,7 @@ Gets the contents of the clipboard.
## SYNTAX

```
Get-Clipboard [-Raw] [<CommonParameters>]
Get-Clipboard [-Raw] [-Delimiter <String[]>] [<CommonParameters>]
```

## DESCRIPTION
Expand All @@ -32,20 +32,65 @@ returned as an array of strings similar to `Get-Content`.

## EXAMPLES

### Example 1: Get the content of the clipboard and display it to the command-line

In this example we have copied the text "hello" into the clipboard.
### Example 1: Get the content of the clipboard

```powershell
Set-Clipboard -Value 'hello world'
Get-Clipboard
```

```Output
hello
hello world
```

### Example 2: Get the content of the clipboard using a custom delimiter

This example gets the content of the clipboard. The content is a string containing the pipe
character. `Get-Clipboard` splits the content at each occurrence of the specified delimiter.

```powershell
Set-Clipboard -Value 'line1|line2|line3'
Get-Clipboard -Delimiter '|'
```

```Output
line1
line2
line3
```

### Example 3: Get the content of the clipboard using custom delimiters

This example gets the content of the clipboard delimited by the line ending for both Windows and
Linux.

```powershell
Get-Clipboard -Delimiter "`r`n", "`n"
```

## PARAMETERS

### -Delimiter

Specifies one or more delimiters to use when the clipboard content is returned as an array of
strings. The command splits the contents of the clipboard at each occurrence of any of the specified
delimiters. If not specified, the default delimiter is `[Environment.NewLine]`.

- On Windows, the default delimiter is ``"`r`n"``.
- On Linux and macOS, the default delimiter is ``"`n"``.

```yaml
Type: System.String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: Platform specific newline
Accept pipeline input: False
Accept wildcard characters: False
```

### -Raw

Gets the entire contents of the clipboard. Multiline text is returned as a single multiline string
Expand Down
66 changes: 64 additions & 2 deletions reference/7.6/Microsoft.PowerShell.Management/Join-Path.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Management
ms.date: 03/25/2025
ms.date: 12/10/2025
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/join-path?view=powershell-7.6&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Join-Path
Expand All @@ -16,7 +16,7 @@ Combines a path and a child path into a single path.

```
Join-Path [-Path] <String[]> [-ChildPath] <String> [[-AdditionalChildPath] <String[]>] [-Resolve]
[-Credential <PSCredential>] [<CommonParameters>]
[-Credential <PSCredential>] [-Extension <String>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -150,6 +150,46 @@ Join-Path -Path a -ChildPath b, c, d, e, f, g
a\b\c\d\e\f\g
```

### Example 9: Add extension to file without extension

```powershell
Join-Path C:\Temp myfile -Extension txt
```

```Output
C:\Temp\myfile.txt
```

### Example 10: Change existing extension

```powershell
Join-Path C:\Temp myfile.txt -Extension .log
```

```Output
C:\Temp\myfile.log
```

### Example 11: Extension without leading dot

```powershell
Join-Path C:\Temp file.txt -Extension log
```

```Output
C:\Temp\file.log
```

### Example 12: Remove extension with empty string

```powershell
Join-Path C:\Temp file.txt -Extension ""
```

```Output
C:\Temp\file
```

## PARAMETERS

### -AdditionalChildPath
Expand Down Expand Up @@ -211,6 +251,28 @@ Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
```

### -Extension

Specifies the extension to use for the resulting path. If not specified, the original extension is
preserved. The leading dot in the extension is optional. If omitted, the command adds it
automatically.

- If the path has an existing extension, it's replaced with the specified extension.
- If the path has no extension, the specified extension is added.
- If you provide an empty string, the existing extension is removed.

```yaml
Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: True
```

### -Path

Specifies the main path (or paths) to which the child-path is appended. The value of **Path**
Expand Down
6 changes: 3 additions & 3 deletions reference/docs-conceptual/install/install-alpine.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: How to install PowerShell on Alpine Linux
ms.date: 11/19/2025
ms.date: 12/15/2025
title: Install PowerShell on Alpine Linux
---
# Install PowerShell on Alpine Linux
Expand All @@ -21,9 +21,9 @@ with a previous version, reinstall the previous version using the [binary archiv
Installation on Alpine is based on downloading tar.gz package from the [releases][03] page. The URL
to the package depends on the version of PowerShell you want to install.

- PowerShell 7.4 - `https://github.com/PowerShell/PowerShell/releases/download/v7.4.13/powershell-7.4.13-linux-musl-x64.tar.gz`
- PowerShell 7.4 (LTS) - `https://github.com/PowerShell/PowerShell/releases/download/v7.4.13/powershell-7.4.13-linux-musl-x64.tar.gz`
- PowerShell 7.5 - `https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell-7.5.4-linux-musl-x64.tar.gz`
- 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`
- 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`

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

Expand Down
4 changes: 2 additions & 2 deletions reference/docs-conceptual/install/install-debian.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: How to install PowerShell on Debian Linux
ms.date: 11/19/2025
ms.date: 12/15/2025
title: Install PowerShell on Debian
---
# Install PowerShell on Debian
Expand Down Expand Up @@ -75,7 +75,7 @@ The link to the current version is:
- PowerShell 7.5 universal package for supported versions of Debian
- `https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell_7.5.4-1.deb_amd64.deb`
- PowerShell 7.6-preview universal package for supported versions of Debian
- `https://github.com/PowerShell/PowerShell/releases/download/v7.6.0-preview.5/powershell-preview_7.6.0-preview.5-1.deb_amd64.deb`
- `https://github.com/PowerShell/PowerShell/releases/download/v7.6.0-preview.6/powershell-preview_7.6.0-preview.6-1.deb_amd64.deb`

The following shell script downloads and installs the current release of PowerShell. You can
change the URL to download the version of PowerShell that you want to install.
Expand Down
42 changes: 25 additions & 17 deletions reference/docs-conceptual/install/install-powershell-on-macos.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: How to install PowerShell on macOS
ms.date: 11/19/2025
ms.date: 12/15/2025
title: Install PowerShell on macOS
---

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

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

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

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

- PowerShell 7.4 (LTS)
- Arm64 processors - [powershell-7.4.13-osx-arm64.pkg][16]
- x64 processors - [powershell-7.4.13-osx-x64.pkg][18]
- PowerShell 7.5
- Arm64 processors - [powershell-7.5.4-arm64.pkg][20]
- x64 processors - [powershell-7.5.4-osx-x64.pkg][22]

- PowerShell 7.4
- Arm64 processors - [powershell-7.4.13-osx-arm64.pkg][16]
- x64 processors - [powershell-7.4.13-osx-x64.pkg][18]
- PowerShell 7.6-preview
- Arm64 processors - [powershell-7.6.0-preview.6-osx-arm64.pkg][24]
- x64 processors - [powershell-7.6.0-preview.6-osx-x64.pkg][26]

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

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

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

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

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

- PowerShell 7.5-preview
- Arm64 processors - [powershell-7.5.4-osx-arm64.tar.gz][21]
- x64 processors - [powershell-7.5.4-osx-x64.tar.gz][23]

- PowerShell 7.4 (LTS)
- Arm64 processors - [powershell-7.4.13-osx-arm64.tar.gz][17]
- x64 processors - [powershell-7.4.13-osx-x64.tar.gz][19]
- PowerShell 7.5
- Arm64 processors - [powershell-7.5.4-osx-arm64.tar.gz][21]
- x64 processors - [powershell-7.5.4-osx-x64.tar.gz][23]
- PowerShell 7.6-preview
- Arm64 processors - [powershell-7.6.0-preview.6-osx-arm64.tar.gz][25]
- x64 processors - [powershell-7.6.0-preview.6-osx-x64.tar.gz][27]

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

PowerShell respects the [XDG Base Directory Specification][24] on macOS.
PowerShell respects the [XDG Base Directory Specification][28] on macOS.

## Supported versions

Expand All @@ -293,8 +297,8 @@ support those methods.
[02]: /dotnet/core/tools/global-tools
[03]: #binary-archives
[04]: #install-as-a-net-global-tool
[05]: #install-using-homebrew
[06]: #install-the-package-via-direct-download
[05]: #install-the-package-via-direct-download
[06]: #install-using-homebrew
[07]: #paths
[08]: #supported-versions
[09]: https://aka.ms/powershell-release?tag=lts
Expand All @@ -312,5 +316,9 @@ support those methods.
[21]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell-7.5.4-osx-arm64.tar.gz
[22]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell-7.5.4-osx-x64.pkg
[23]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell-7.5.4-osx-x64.tar.gz
[24]: https://specifications.freedesktop.org/basedir/latest/
[25]: https://support.apple.com/102445
[24]: https://github.com/PowerShell/PowerShell/releases/download/v7.6.0-preview.6/powershell-7.6.0-preview.6-osx-arm64.pkg
[25]: https://github.com/PowerShell/PowerShell/releases/download/v7.6.0-preview.6/powershell-7.6.0-preview.6-osx-arm64.tar.gz
[26]: https://github.com/PowerShell/PowerShell/releases/download/v7.6.0-preview.6/powershell-7.6.0-preview.6-osx-x64.pkg
[27]: https://github.com/PowerShell/PowerShell/releases/download/v7.6.0-preview.6/powershell-7.6.0-preview.6-osx-x64.tar.gz
[28]: https://specifications.freedesktop.org/basedir/latest/
[29]: https://support.apple.com/102445
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: How to install PowerShell on Windows IoT and Nano Server.
ms.date: 11/19/2025
ms.date: 12/15/2025
title: Install PowerShell on Windows IoT and Nano Server
---
# Install PowerShell on Windows IoT and Nano Server
Expand Down
Loading