snippetbashTip
Get-Clipboard — A PowerShell command to get content from clipboard. Note: `gcb` can be used as an alias for `Get-Cli
Viewed 0 times
commandfromcontentclipowershellget-clipboardget
windows
Problem
How to use the
Get-Clipboard command: 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>.Solution
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-ClipboardGet clipboard content as specific text format:
Get-Clipboard -TextFormatType {{Text|Html|Rtf}}Get raw clipboard content:
Get-Clipboard -RawRetrieve an Image:
Get-Clipboard -Format ImageGet file paths copied in explorer:
Get-Clipboard -Format FileDropListCode Snippets
Get clipboard text
Get-ClipboardGet clipboard content as specific text format
Get-Clipboard -TextFormatType {{Text|Html|Rtf}}Get raw clipboard content
Get-Clipboard -RawRetrieve an Image
Get-Clipboard -Format ImageGet file paths copied in explorer
Get-Clipboard -Format FileDropListContext
tldr-pages: windows/Get-Clipboard
Revisions (0)
No revisions yet.