Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Managing clipboard between sessions

$
0
0

I have the current situation: user Alice logged on a Win10. From a PS I can use the get-clipboard and set-clipboard commands to get and set the clipboard. It works as expected.

While Alice is logged in interactively, I start from a remote machine a powershell session on the same host she's logged on, using Alice's credentials. In both the powershells (interactive and remoted session) whoami confirms I'm Alice. Again, as expected.

If I use the set-clipboard commands in the remoted session, the interactive session get-clipboard command does not receive the data. Each session has its own clipboard.

Is there a way to make the sessions share the interactive user clipboard? So that I do a set-clipboard in the remoted session and the user can do a get-clipboard (or ctrl+v) and get the data?

Thanks


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>