Hi, i use next code:
WinRmTool.Builder builder = WinRmTool.Builder.builder("my.windows.server.com", "Administrator", "pa55w0rd!");
builder.setAuthenticationScheme(AuthSchemes.NTLM);
builder.port(5985);
builder.useHttps(false);
WinRmTool tool = builder.build();
tool.executePs(psScript)
When the code was successfully fulfilled and powershell scripts was run on the target server, the client continues to work...
Hi, i use next code:
When the code was successfully fulfilled and powershell scripts was run on the target server, the client continues to work...