mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-08 07:45:59 +00:00
31 lines
661 B
Plaintext
31 lines
661 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, windows]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# Get-Clipboard
|
|
|
|
> A PowerShell command to get content from clipboard.
|
|
> Note: `gcb` can be used as an alias for `Get-Clipboard`.
|
|
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-clipboard>.
|
|
|
|
- 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`
|