Skip to content

WS-Man Send operation implemenation #53

@semancik

Description

@semancik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions