• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 245
  • Last Modified:

Running Desktop Application

I have seen that there is a utility called PsExec.  I want to be able to run a remote application and then be able to log into the server and see the program running in a window.  I have an application from a 3rd party that I have to keep logging into my server and run it.  I have been told that it can't run as a service, and needs to run "interactively".  I tried using vbscript to start the process and I can do that but I have been told it needs to interact with the desktop.

I have tried to fire off notepad, but it does not work.  Is it possible.
C:\Users\swidorj\Downloads\PsTools>psexec \\servername -d -i notepad.exe
0
michd
Asked:
michd
  • 3
  • 3
2 Solutions
 
RobertPartenCommented:
I have used psexec for this before,

use the -i for interactve mode

Run Regedit interactively in the System account to view the contents of the SAM and SECURITY keys::

psexec -i -d -s c:\windows\regedit.exe

Is a good example of how it is used.
0
 
MarkieSCommented:
Try this

psexec.exe   \\servername -u <username> -p <yourpasswordhere> -s -d -i "notepad.exe"
0
 
michdAuthor Commented:
There seems to be an issue with -i and -s in the same command.


psexec -i -d -s c:\windows\regedit.exe

I got this to work on my local box, but not on the remote.
-----------------------------------------------------------------------------
psexec.exe   \\servername -u <username> -p <yourpasswordhere> -s -d -i "notepad.exe"

-s -i do not work together.  If I use either I see the process, but not on the desktop.
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
MarkieSCommented:
Forget the -d - that was typed in a hurry!

Forget the -s - that runs under the system account

Just use -i


cheers
0
 
MarkieSCommented:
Try -x as well...

cheers
0
 
michdAuthor Commented:
It ran with the -i, but I can't get the program to load interactively on the remote computer.

I am going to change my plan of attack and schedule a job on the server itself.  It should work...

Thanks to both.
0
 
michdAuthor Commented:
I changed my plan of attack and not going to try a get this working remotely.
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now