Subscribe to RSS feed  Follow @jackvamvas - Twitter

*Use the Comments section for questions Links


SQL Server DBA Jobs

How to copy Powershell data to Clipboard

02 November,2021 by Tom Collins

Question: Is there a Powershell method of passing data to the Windows Clipboard ?   The aim is to extract data and then simply Ctl + V into an Excel spreadsheet . 


Answer: It is possible to pass output on a Powershell gui into the Clipboatrd , using the Clip keyword.

This is an example of extracting the Computer Information using the Get-ComputerInfo powershell cmdlet , and instead of displaying on the Powershell GUI , the output is passed onto the Clipboard.   

Once the output is in the Clipboard - than Ctl + V into the target program . 


    Get-ComputerInfo | Clip

Author: Tom Collins (


Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.


Post a comment on How to copy Powershell data to Clipboard | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact|Copyright & Disclaimer