QuickTip: Copy output to clipboard using clip.exe

Sometimes the contents of a certain variable or output of a script is quickly needed elsewhere, this is where the clipboard can be very useful. Since PowerShell supports pipelining to external tools as well as native cmdlets it is quite simple to output something to the clipboard, the following example will put the output of Get-Process on your clipboard:

Get-Process | clip.exe

Do you have any useful applications for this neat little trick, be sure to post them in the comment section.

Leave a Reply

Your email address will not be published.