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
This is only a preview. Your comment has not yet been posted.
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.
Posted by: |