-
Notifications
You must be signed in to change notification settings - Fork 55
Description
I have implemenation of the Send WS-Man operation. The code is here:
https://github.com/Evolveum/winrm4j/tree/shell
This operation can be used to send input to the running process. With a proper PowerShell magic it can be used to initialize PowerShell once and then send several commands to an initialized instance. I have also added support for semi-async execution of commands, so winrm4j can continuously receive command output and send input as the command executes.
This is usually needed for Exchange scripts unless you want to suffer terrible penalty of exchange snap-in intialization. The sample code is here:
https://github.com/Evolveum/playground/tree/master/powerhell
However, I'm not going to create a pull request now. The code is a follow-up to my CredSSP changes which are now stuck:
#49
So I'm writing this as a note to anyone who would need the implementation of Send operation. Please go ahead and use the code from my fork.