Hello
I want to be able to copy selected image to clipboard
PU has its own command to set clipboard but it handles only text file
I found a code that works perfectly when its executed from powershell:
Windows.Forms will not work from PSU as PSU is a web service.
Windows forms works from powershell because you’re running in an interactive session and it’s setting the clipboard via that dot net class, which requires an interactive session with the user. Since PSU is a webservice, that layer is not presented and the client accessing is also in effect disconnected from that side of things anyway.
As you’ve mentioned Set-UDClipboard -data only takes strings, so I don’t think it would be possible using this, I would suggest putting in a feature request on github.