Your favourite OSX command line clipboard manipulation libraries pbcopy and pbpaste were ported over to Windows last night. They are two console applications that pipe the clipboard into/out of STDIN/STDOUT


Installation is done via Chocolatey:

# cinst pasteboard


To copy your SSH key to the clipboard:

# cd .ssh
# type | pbcopy

To write the contents of your clipboard to a file:

# cd C:\tmp
# pbpaste > output.txt