Copy binary as text via clipboard to a remote desktop

Sometimes you are not allowed to transfer files between machines but you can transfer text via clipboard. A little hack how to transfer a file using a standard Windows utility certutil. 

Create a text file encoding the file

certutil -encode file.zip file.txt

Open and copy text

Create a new file on the remote desktop and paste the text

Decode the file into zip

certutil -decode file.txt file.zip