AntiMalware Status

PowerTip: How to Send Output to Clipboard with PowerShell

Here is just quick power tip for your use while working in [easyazon_link identifier=”1787123758″ locale=”US” tag=”wn0d5-20″] PowerShell [/easyazon_link] to save some time.

Q: How can I easily capture output from the Windows [easyazon_link identifier=”0735675112″ locale=”US” tag=”wn0d5-20″] PowerShell [/easyazon_link] console and send it to the Windows Clipboard  so I can paste it into another program?

A: There is built in standard Windows utility clip.exe that accepts pipeline output so you can easily to use it in [easyazon_link identifier=”B01N0ANAIN” locale=”US” tag=”wn0d5-20″] PowerShell [/easyazon_link] and paste the output to another program.

Here is simple example use of clip utility in [easyazon_link identifier=”1782175997″ locale=”US” tag=”wn0d5-20″] PowerShell [/easyazon_link]- I want to see process Chrome and clip it to email so I can send it to my colleague :

 Get-Process -Name Chrome | clip

Once done, open your document or new email and simply PASTE (CTRL+V) the data from clip and send.

[easyazon_image align=”none” height=”160″ identifier=”B06WP8VCG3″ locale=”US” src=”http://blog.technotesdesk.com/wp-content/uploads/2017/06/51nM5vVwwGL.SL160.jpg” tag=”wn0d5-20″ width=”121″]

 

Leave a Reply