PowerTip: Send Output to Clipboard with PowerShell

PowerTip: Send Output to Clipboard with PowerShell

  • Comments 5
  • Likes

Summary: Use Windows PowerShell to easily send output to the clipboard.

Hey, Scripting Guy! Question How can I easily capture output from the Windows PowerShell console and send it to the Windows Clipboard
          so I can paste it into another program?

Hey, Scripting Guy! Answer The standard Windows utility clip.exe accepts pipeline output, for example:

Get-EventLog application -Newest 1 | clip

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Super Cool Tip :)

  • Great tip! Very handy.

  • I never knew about clip.exe, thanks!

  • thank you