Piping PowerShell Output to the Clipboard

It’s definitely beneficial to attend technology events so you can talk to other IT Pro’s. This past weekend I presented a session at PowerShell Saturday in Atlanta and while at the speaker dinner I made a comment about a new version of the PowerShell Community Extensions being released.

The only cmdlet that’s part of that module that I use all of the time is Out-Clipboard which allows you to paste the output of a PowerShell command into notepad, Word, an email, etc:

Brian Wilhite, another PowerShell enthusiast and speaker gave me a great tip: “You don’t need the Out-Clipboard cmdlet to pipe to the clipboard, just pipe your output to clip.exe”:

I even demonstrated this tip during my session. Brian, thanks again for that awesome tip.

µ

1 Comment

  1. Brian Wilhite

    This was an awesome tip provided to me by my good friend Jason Walker, MS PFE. We had a scripting event that used this method as a means to output data to the clipboard. Thanks for highlighting this Mike and sharing with the community, keep up the great work!

    Reply

Leave a Reply

%d bloggers like this: