From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 121207 invoked by alias); 18 Mar 2018 13:52:25 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 121159 invoked by uid 89); 18 Mar 2018 13:52:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=BAYES_00,SPF_FAIL,SPF_HELO_PASS,URI_HEX autolearn=no version=3.3.2 spammy=username X-HELO: n5.nabble.com Received: from n5.nabble.com (HELO n5.nabble.com) (162.253.133.81) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 18 Mar 2018 13:52:22 +0000 Received: from n5.nabble.com (localhost [127.0.0.1]) by n5.nabble.com (Postfix) with ESMTP id A40C44DB2A20 for ; Sun, 18 Mar 2018 06:52:21 -0700 (MST) Date: Sun, 18 Mar 2018 15:34:00 -0000 From: mhallnh To: cygwin@cygwin.com Message-ID: <1521381141669-0.post@n5.nabble.com> In-Reply-To: References: <1769495026.20160211145642@yandex.ru> <1521222444047-0.post@n5.nabble.com> <386991849.20180317054151@yandex.ru> <1521316059812-0.post@n5.nabble.com> Subject: Re: sshd interaction with desktop not working MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2018-03/txt/msg00263.txt.bz2 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