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

how to run cmd by another user in windows #65

Open
RickSKy opened this issue Jul 26, 2023 · 1 comment
Open

how to run cmd by another user in windows #65

RickSKy opened this issue Jul 26, 2023 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@RickSKy
Copy link

RickSKy commented Jul 26, 2023

in windows we can use syscall CreateProcessAsUserW to create cmd by another user. Is there any plan for this?

@zhiburt
Copy link
Owner

zhiburt commented Jul 26, 2023

Hi @RickSKy

So it's possible.
Just need to think about api of how such a setting.

I am not an expert in windows, so how do you get a user token? By LogonUserW or somewhat else?

@zhiburt zhiburt added enhancement New feature or request question Further information is requested labels Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants