cloudsoft / winrm4j

Apache License 2.0
94 stars 53 forks source link

Supply keepalive option for command/receive calls #157

Open AndrewDodd42 opened 2 years ago

AndrewDodd42 commented 2 years ago

As recommended by Microsoft documentation, this adds WSMAN_CMDSHELL_OPTION_KEEPALIVE=TRUE for command's Receive messages.

Ref https://docs.microsoft.com/en-us/openspecs/windows_protocols/MS-WSMV/83309079-a09e-41ec-ad54-f608c2fec355