Subject: Starting an application with PSExec
Posted: 02 February 2014 at 9:43pm
Hi Everyone,
I'm working with a testapplication for simulating user actions. This test app runs on the background as a process which is started by a Windows service.
This Windows service has the “Local System”credentials and has the “Allow service to interact with desktop” flag enabled.
However, as you can imagine, there is no real desktop attached to this process.
As a result,simulations of user actions doesn't always work - even when changing the Windows service config to use real user credentials.
So the idea is to create a batch file that is started by this test app. That batch file contains the command line with PSExec to run the application that should interact with the desktop of a user who is already logged-on. All this is on the same machine => so not a real remote start.
Once started and interacting with the desktop of the user already logged-on, the test script is started. Which runs in the same user context as the application itself.
What should be the PSExec command syntax for something like this? Assuming that it can be done?
What are the per-requisites on a Windows 7 machine?
Any other suggestions?
Edited by NogNeetMachinaal - 3 hours 10 minutes ago at 9:50pm