This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: sshd interaction with desktop not working
- From: mhallnh <mhall at lgw dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 18 Mar 2018 06:52:21 -0700 (MST)
- Subject: Re: sshd interaction with desktop not working
- References: <CAHB2L+ct03oQVgQ27m=oPC41qMvXvwrO0Zm63SDidmujUJd47Q@mail.gmail.com> <CAHB2L+dPtZCm_1ga-a8Ud74oNg5-3JDW6zHYMeYUHDyiOtUXZQ@mail.gmail.com> <1769495026.20160211145642@yandex.ru> <1521222444047-0.post@n5.nabble.com> <386991849.20180317054151@yandex.ru> <1521316059812-0.post@n5.nabble.com> <CAAD4mYi_9oRbwpeo=E4UygBixQ755AnAPO4wXNwseP4e6C8b8A@mail.gmail.com>
I guess I'll go back to my original solution which is to use PsExec from
Sysinternals.
It's a little more complicated because you have to first run a script to
retrieve the Windows Session ID
This script works:
$username = 'mhall'
$results = psexec \\192.168.X.XXX query session
$id = $results | Select-String "$username\s+(\w+)" |
Foreach {$_.Matches[0].Groups[1].Value}
Then you can follow up by invoking the windows program (notepad in the
example below).
the 'i' switch is used to indicate that you want to interact with the
windows desktop
psexec \\192.168.X.xxx -u $username -i $id -d notepad.exe
pause
--
Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple