2025-12-16 10:20:31 -07:00
|
|
|
# Get-Clipboard
|
|
|
|
|
|
|
|
|
|
> A PowerShell command to get content from clipboard.
|
|
|
|
|
> Note: `gcb` can be used as an alias for `Get-Clipboard`.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-clipboard>.
|
2025-12-16 10:20:31 -07:00
|
|
|
|
|
|
|
|
- Get clipboard text:
|
|
|
|
|
|
|
|
|
|
`Get-Clipboard`
|
|
|
|
|
|
|
|
|
|
- Get clipboard content as specific text format:
|
|
|
|
|
|
|
|
|
|
`Get-Clipboard -TextFormatType {{Text|Html|Rtf}}`
|
|
|
|
|
|
|
|
|
|
- Get raw clipboard content:
|
|
|
|
|
|
|
|
|
|
`Get-Clipboard -Raw`
|
|
|
|
|
|
|
|
|
|
- Retrieve an Image:
|
|
|
|
|
|
|
|
|
|
`Get-Clipboard -Format Image`
|
|
|
|
|
|
|
|
|
|
- Get file paths copied in explorer:
|
|
|
|
|
|
|
|
|
|
`Get-Clipboard -Format FileDropList`
|