CmdID / PowerShell / Cmdlets / Get
Get-Clipboard
Gets the current Windows clipboard entry. PowerShell reference
From the PowerShell reference
3 parameters
Alias gcb
1 Sigma rule looks for it
What it does
Gets the current Windows clipboard entry. The Get-Clipboard cmdlet gets the current Windows clipboard entry. Multiple lines of text are returned as an array of strings similar to Get-Content.
Get-Clipboard [-Format <ClipboardFormat>] [-TextFormatType <TextDataFormat>] [-Raw] [<CommonParameters>]
Get the content of the clipboard
Set-Clipboard -Value 'hello world'
Get-ClipboardIdentifyTrips 1 Sigma rule: mediumPowerShell Get-Clipboard Cmdlet Via CLI by Nasreddine Bencherchali (Nextron Systems)
Get the content of the clipboard in a specific format
Get-Clipboard -Format FileDropListIdentifyTrips 1 Sigma rule: mediumPowerShell Get-Clipboard Cmdlet Via CLI by Nasreddine Bencherchali (Nextron Systems)
Its page in the reference: Get-Clipboard.
Parameters
-FormatSpecifies the type, or format, of the clipboard. The acceptable values for this parameter are:
- Text
- FileDropList
- Image
- Audio-RawGets the entire contents of the clipboard. Multiline text is returned as a single multiline string rather than an array of strings.-TextFormatTypeSpecifies the text data format type of the clipboard. The acceptable values for this parameter are:
- Text
- UnicodeText
- Rtf
- Html
- CommaSeparatedValue