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

Command not running with admin privilege #149

Open
abhishekrhyme opened this issue Feb 7, 2022 · 0 comments
Open

Command not running with admin privilege #149

abhishekrhyme opened this issue Feb 7, 2022 · 0 comments

Comments

@abhishekrhyme
Copy link

I m using admin credentials only to create a session but upon running the command it is not running with admin privileges and the command is running like a normal user.

WinRmTool tool = WinRmTool.Builder.builder("my.windows.server.com", "Administrator", "pa55w0rd!")
.authenticationScheme(AuthSchemes.NTLM).port(5985).useHttps(false) .context(context) .build();

Is there any way to elevate the permission when running the above command?

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

No branches or pull requests

1 participant