Connecting message remote machine using WS-MAN messages RRS feed

  • Question

  • Hi

    How do I establish a connection to the remote machine using the WS-MAN messages?

    I have prepared a SOAP message to connect to the target Windows machine, in the message I have provided user credentials. even then it fails to connect.

    Any suggestions?

    Tuesday, November 5, 2013 11:15 AM

All replies

  • Hi Havenkat:

    I have alerted the open specifications team regarding your inquiry. A member of the team will be in touch soon.

    Regards, Obaid Farooqi

    Tuesday, November 5, 2013 4:32 PM
  • Hi Havenkat:

    I will be assisting you with this inquiry. Hope you have already referred MS-WSMAN specification ,, for reference. If not kindly have a look, specially, section 4 (example).

    If you have already looked at the specification then kindly drop me a mail at : dochelp at Microsoft dot com so that we can troubleshoot the issue. We will circle back and update this thread with final outcome so that others can benefit.


    Tarun Chopra | Escalation Engineer | Open Specifications Support Team

    Tuesday, November 5, 2013 5:16 PM
  • After discussing with Tarun from Microsoft team, I'm able to connect to the remote machine with the following message format and basic authentication.

        Hypertext Transfer Protocol
            POST /wsman HTTP/1.1\r\n
                [Expert Info (Chat/Sequence): POST /wsman HTTP/1.1\r\n]
                    [Message: POST /wsman HTTP/1.1\r\n]
                    [Severity level: Chat]
                    [Group: Sequence]
                Request Method: POST
                Request URI: /wsman
                Request Version: HTTP/1.1
            Content-Type: application/soap+xml;charset=UTF-8\r\n
            User-Agent: Microsoft WinRM Client\r\n
            Authorization: Basic encrypted-key\r\n
                Credentials: username:password
            Host: ip-address:5985\r\n
            Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2\r\n
            Connection: keep-alive\r\n
            Content-Length: 197\r\n
        eXtensible Markup Language
    Tuesday, November 26, 2013 5:30 AM