Sysinternals Homepage
Forum Home Forum Home > Sysinternals Utilities > PsTools
  New Posts New Posts RSS Feed: PsExec & -i To Interact w/Desktop
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

PsExec & -i To Interact w/Desktop

 Post Reply Post Reply Page  123>
Author
Message Reverse Sort Order
Koby View Drop Down
Newbie
Newbie


Joined: 10 June 2010
Online Status: Offline
Posts: 1
Post Options Post Options   Quote Koby Quote  Post ReplyReply Direct Link To This Post Topic: PsExec & -i To Interact w/Desktop
    Posted: 10 June 2010 at 2:28pm
Hi,
I've tried everything I've read here (plus more) and still no GUI is displayed although like everyone else the app does show up in the process list.  Any other ideas?  I'm using the latest version of PSTools.  I'm running the command locally (psexec \\<ip> -u id -p password -i -e -d notepad.exe); the system is Win7 OS.
 
On another Win7 system, the same command works fine.  I've tried to check everything for differences with no luck.
 
Thanks for any help,
 
Back to Top
lmasaya View Drop Down
Newbie
Newbie
Avatar

Joined: 08 June 2010
Location: Guatemala
Online Status: Offline
Posts: 1
Post Options Post Options   Quote lmasaya Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2010 at 7:53pm
Hi guys! 

Thanks for all the tips. Let me show you what I tried (and worked for me).

To run something on a remote machine (with a user logged on):
psexec \\<ip address> -u <user> -p <password> -i 0 -d "<local path to executable>"

-i 0    runs on main screen
-d      don't wait for command to complete on remote machine

To stop that application:
pskill \\<ip address> -u <user> -p <password> <process id>

The process id you put at the end, comes from the output of the psexec command. 
I had to add the "0" after the -i option, after doing an update of my windows xp. Must be some
kind of change in an update.

Hope this helps.


Back to Top
Kein View Drop Down
Newbie
Newbie


Joined: 08 May 2010
Location: Russia
Online Status: Offline
Posts: 11
Post Options Post Options   Quote Kein Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2010 at 2:02pm
Ok, figured it out: new version with -i session_number helped, but still, there is an another issue: when I end up remote telnet session, the application that was started via psexec dies too. Is there any way to prevent that? logonsessions shows that application belows to my remote session (id 0), but I want it to belong interactive user session (desktop; id 0 as well).

Edited by Kein - 24 May 2010 at 2:04pm
Back to Top
Kein View Drop Down
Newbie
Newbie


Joined: 08 May 2010
Location: Russia
Online Status: Offline
Posts: 11
Post Options Post Options   Quote Kein Quote  Post ReplyReply Direct Link To This Post Posted: 08 May 2010 at 6:57pm
]There is no way to run a GUI application on remote machine via telnet? I tried everything, but it always starts in background, her is the confs:
Remote:
-> Win XP SP2 Pro
-> Telnet Server
-> Account "USER" which is always loggen on in normal mode (it is not a sever, jsut home pc)

Local:
-> Vista SP2
-> Standard telnet client (microsoft one that comes with Vista)

My actions: I'm logging in to remote system via telnet using a "USER" account (which is already logged on in normal modeas we know) and execute:

psexec.exe -i -d notepad.exe
psexec.exe \\REMOTE -u USER -p PASS -i -d notepad.exe
psexec.exe \\REMOTE -u USER -p PASS -i -d C:\windows\notepad.exe


...

No luck, it ALWAYS background. Any ideas?

Edited by Kein - 08 May 2010 at 7:05pm
Back to Top
sajith View Drop Down
Newbie
Newbie


Joined: 08 May 2007
Location: India
Online Status: Offline
Posts: 1
Post Options Post Options   Quote sajith Quote  Post ReplyReply Direct Link To This Post Posted: 08 May 2007 at 10:04am

Hi,
I suppose its stupid to respond to this thread now... over 2 yrs after the thread was started... Tongue But i decided on replying to this one coz this thread is what comes up 1st when someone searches for a solution to this problem. 
I had the same problem N i did all of that u guys have suggested, n it yet didn't work for me...  I could c the process running in the tasklist on the remote machine but the GUI was no where to be seen...  untill... i set "WMI settings" to "full rights".

This can be found under computer management (RIght click on my computer -> Manage)
1.  Select "WMI Control" under "Services and application" node.
2.  RIght click on "WMI Control" and select properties to open "WMI Control Properties"
3.  On the "Security Tab", goto Root -> WMI -> ms_409.
4.  Select "ms_409" and Click "Security" Button to Open "Security for ROOT\WMI\ms_409" dialog and set the permission to give full access to everyone.
(Honestly I'm not quiet sure of which access right worked, but i went about give all rights to all Groups and usernames.  Please have an eye on any security threats that may be associated with this change.)

My special thanks to sraddhan, (my collegue and friends) for suggesting the solution.

The above setting is in addition to :
1.  switching ON advanced file sharing with full permission.
2.  Switching ON the guest account.
3.  Giving real password to the account used to login to the remote machine.
4.  using "-i" option while running psexec
5.  using "-accepteula" TWICE in the psexec command... one immediately after psexec and one in the end.

I hope this is helpful to whoever looks for this thread ever...

Cheers
Sajith
Back to Top
somtamja View Drop Down
Newbie
Newbie


Joined: 02 October 2006
Location: United States
Online Status: Offline
Posts: 3
Post Options Post Options   Quote somtamja Quote  Post ReplyReply Direct Link To This Post Posted: 03 October 2006 at 12:52am

try put -i in front of the \\host would this work ? also try on local machine first, if it works meaning u got an authentication problem. make sure it's not on the different domain which requires login to be domain\login

Back to Top
nehal View Drop Down
Newbie
Newbie


Joined: 17 August 2006
Online Status: Offline
Posts: 1
Post Options Post Options   Quote nehal Quote  Post ReplyReply Direct Link To This Post Posted: 17 August 2006 at 6:46pm

Hi -- not sure if this is off topic. 

I am intersted a tool that functions similar to psexec -i, but allows more subtle control over which grpahic context the app utilizes.   One thing is that I haven't found is very good documentation on how  "graphical contexts" work in windows server 2003/xp, and was wondering if you had any good links. 

Some of things I'm trying to get my head around:

++formulating a precise concept of what "graphical context" means in windows -- I'm vaguely thinking it is something like -- server 2003 has by default three graphic contexts (the console and two purely virtual) and that I would like to have a ps exec -i that could direct my process to one of these three choices -- though I also sense that this is probably not quite precise enough and misses some important issues

++Is it possible to have a running app change its graphics context  on the fly (e.g. many virual desktop systems allow you to move a gui app from one desktop to the next)

 

actually there is a few other questions, but since I'm not sure if this post is appropriate, I defer them for now.

thanks, nehal 

 

 

Back to Top
Karlchen View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 June 2005
Location: Germany
Online Status: Offline
Posts: 5121
Post Options Post Options   Quote Karlchen Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2006 at 2:36pm
Originally posted by sunriser

Pop-up the GUI in the remote machine is not big deal right now, and my question is how to remote type the key from local.

If you launch a GUI app remotely using psexec, input and output (keyboard+mouse, screen) are solely accessible on the remote machine.
This is by design. psexec is not a remote desktop light. Sorry.

Karl
Back to Top
sunriser View Drop Down
Newbie
Newbie


Joined: 19 May 2006
Location: United States
Online Status: Offline
Posts: 1
Post Options Post Options   Quote sunriser Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2006 at 12:50pm

Pop-up the GUI in the remote machine is not big deal right now, and my question is how to remote type the key from local.

e.g.:

pcexec -i \\mypc "ntbackup.exe"

After ntbackup GUI's launch, I need to press key "TAB" and check some check box, how can I do it nad where I can find the key maps for the pcexec.

Thx in advance
Back to Top
willyg View Drop Down
Newbie
Newbie
Avatar

Joined: 17 January 2006
Location: United States
Online Status: Offline
Posts: 1
Post Options Post Options   Quote willyg Quote  Post ReplyReply Direct Link To This Post Posted: 17 January 2006 at 3:20pm

what type of message service does psexec.ex utilize to launch apps remotely? My conpany has a program that can be run in a standalone mode (points to local data), or in one of 2 networked modes (points to data on remote server, or is the remote data server). psexec.exe will successfully launch the program if the program is in standalone mode or configured as a remote data server.

If the program is in networked client mode(points to data server), the application crashes upon trying to load and psexec will return an error code from the program that is about 7-10 digits long.

does anyone know if psexec.exe would interfere with any system messages or services of any kind?

Guillermo Gutierrez
Back to Top
 Post Reply Post Reply Page  123>

Forum Jump Forum Permissions View Drop Down