Search notes:

Windows Clipboard

Clipboard history

With Windows 10, build 17666, Windows comes with the ability to historize items from the Clipboard.
This «feature» needs to be enabled, for example with PowerShell:
$eatMe = new-itemProperty -path 'HKCU:\Software\Microsoft\Clipboard' -name EnableClipboardHistory -propertyType DWord -value 1 -force
Github repository about-Windows-Registry, path: /HKEY_CURRENT_USER/Software/Microsoft/Clipboard/enable-clipboard-history.ps1
After history has been enabled, the historized items can be accessed with the Win+v shortcut.

Accessing the clipboard from the command line

clip.exe allows to put text into the clipboard in the command line (cmd.exe or PowerShell).
The specific PowerShell commands set- and get-clipboard allow to read and write into the clipboard:
set-clipboard 'some text'
get-clipboard

See also

The PowerShell cmdLet nouns clipboard and clipboardText.
The .NET class System.Windows.Forms.Clipboard
Accessing the clipboard with VBScript and MSHTML.
Visual Basic for Applications:
Registry key HKEY_CURRENT_USER\Software\Microsoft\Clipboard
Perl module Win32::Clipboard
The pc.bat batch file which writes the current working directory into the clipboard.
The (Excel) VBA functions

Index