Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start Process on Another Desktop #30

Open
iamacarpet opened this issue Feb 11, 2021 · 0 comments
Open

Start Process on Another Desktop #30

iamacarpet opened this issue Feb 11, 2021 · 0 comments

Comments

@iamacarpet
Copy link
Owner

At the moment, our app using this library runs as a system service.

As such, any processes started end up running in the services virtual desktop, so aren't visible to the user & they can't interact with them.

To get around this, we currently have to use a combination of PowerShell & psexec:-

  • First to query the virtual desktop ID of the current user (PowerShell)
  • Secondly, to start the process in the context of that virtual desktop, so it is visible (psexec)

It would be great to implement this natively, so we can just specify it as an option when starting a process.

There's an example of it in C++ at https://github.com/poweradminllc/PAExec , although I haven't tried the application out to be able to say if it works or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant