From: mhallnh <mhall@lgw.com>
To: cygwin@cygwin.com
Subject: Re: sshd interaction with desktop not working
Date: Sun, 18 Mar 2018 15:34:00 -0000 [thread overview]
Message-ID: <1521381141669-0.post@n5.nabble.com> (raw)
In-Reply-To: <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
next prev parent reply other threads:[~2018-03-18 13:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-09 9:49 Aijaz Baig
2016-02-09 12:56 ` Larry Hall (Cygwin)
2016-02-11 7:00 ` Aijaz Baig
2016-02-11 12:05 ` Andrey Repin
2018-03-16 18:00 ` mhallnh
2018-03-17 6:16 ` Andrey Repin
2018-03-17 20:05 ` mhallnh
2018-03-17 20:21 ` R0b0t1
2018-03-18 15:34 ` mhallnh [this message]
2018-03-18 16:19 ` R0b0t1
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1521381141669-0.post@n5.nabble.com \
--to=mhall@lgw.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).