![]() |
PsExec & -i To Interact w/Desktop |
Post Reply
|
Page 123> |
| Author | |
Koby
Newbie
Joined: 10 June 2010 Online Status: Offline Posts: 1 |
Post Options
Quote Reply
Topic: PsExec & -i To Interact w/DesktopPosted: 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,
|
|
![]() |
|
lmasaya
Newbie
Joined: 08 June 2010 Location: Guatemala Online Status: Offline Posts: 1 |
Post Options
Quote Reply
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. |
|
![]() |
|
Kein
Newbie
Joined: 08 May 2010 Location: Russia Online Status: Offline Posts: 11 |
Post Options
Quote Reply
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 |
|
![]() |
|
Kein
Newbie
Joined: 08 May 2010 Location: Russia Online Status: Offline Posts: 11 |
Post Options
Quote Reply
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 |
|
![]() |
|
sajith
Newbie
Joined: 08 May 2007 Location: India Online Status: Offline Posts: 1 |
Post Options
Quote Reply
Posted: 08 May 2007 at 10:04am |
|
Hi, This can be found under computer management (RIght click on my computer -> Manage) My special thanks to sraddhan, (my collegue and friends) for suggesting the solution. The above setting is in addition to : I hope this is helpful to whoever looks for this thread ever... |
|
|
Cheers
Sajith |
|
![]() |
|
somtamja
Newbie
Joined: 02 October 2006 Location: United States Online Status: Offline Posts: 3 |
Post Options
Quote Reply
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 |
|
![]() |
|
nehal
Newbie
Joined: 17 August 2006 Online Status: Offline Posts: 1 |
Post Options
Quote Reply
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
|
|
![]() |
|
Karlchen
Senior Member
Joined: 18 June 2005 Location: Germany Online Status: Offline Posts: 5121 |
Post Options
Quote Reply
Posted: 19 May 2006 at 2:36pm |
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 |
|
![]() |
|
sunriser
Newbie
Joined: 19 May 2006 Location: United States Online Status: Offline Posts: 1 |
Post Options
Quote Reply
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 |
|
![]() |
|
willyg
Newbie
Joined: 17 January 2006 Location: United States Online Status: Offline Posts: 1 |
Post Options
Quote Reply
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
|
|
![]() |
|
Post Reply
|
Page 123> |
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |