-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Starting a ConPTY process with UAC elevation #332
Comments
|
@Biswa96 please do not encourage people to rely on our private APIs. |
@Eugeny we don’t have an official stance on elevating a pseudoconsole client. At the moment, you’d have the best chance of success by shipping an elevated helper and using that to broker communication with your lower-IL process. |
I don't think the private API really matters here - when you call I'm experimenting with these scenarios here, but it's very experimental at the moment. |
This discussion has, perhaps, outlived its usefulness. |
The private API |
Creating a process as a different user was always possible, even without a pseudoconsole running as that user. The hard part is getting the correct part of the user's split token to launch elevated, which CreatePseudoConsoleAsUser still doesn't let you do. 😄 |
to wit: it is subject to the same limitation @parkovski already pointed out. |
What is the Microsoft's recommended way to start an elevated process with an attached PTY?
The text was updated successfully, but these errors were encountered: