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