Skip to content
Open
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
Loading