Skip to content

Instantly share code, notes, and snippets.

@mwrock
Created October 29, 2015 21:10
Show Gist options
  • Save mwrock/e55a9a6522d4ba9ade0f to your computer and use it in GitHub Desktop.
Save mwrock/e55a9a6522d4ba9ade0f to your computer and use it in GitHub Desktop.
winrs vs ruby winrm
POST /wsman HTTP/1.1
Content-Type: application/soap+xml;charset=UTF-8
Authorization: Basic dmFncmFudDp2YWdyYW50
User-Agent: Ruby WinRM Client (2.6.0.1, ruby 2.0.0 (2015-04-13))
Accept: */*
Date: Thu, 29 Oct 2015 01:35:56 GMT
Content-Length: 1663
Host: 192.168.137.222:5985
<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:b="http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd" xmlns:n="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:cfg="http://schemas.microsoft.com/wbem/wsman/1/config"><env:Header><a:To>http://192.168.137.222:5985/wsman</a:To><a:ReplyTo><a:Address mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:MaxEnvelopeSize mustUnderstand="true">153600</w:MaxEnvelopeSize><a:MessageID>uuid:C93D6806-A817-4A02-B4F1-3C6FD0670DBF</a:MessageID><w:Locale xml:lang="en-US" mustUnderstand="false"/><p:DataLocale xml:lang="en-US" mustUnderstand="false"/><w:OperationTimeout>PT60S</w:OperationTimeout><w:ResourceURI mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd</w:ResourceURI><a:Action mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Create</a:Action><w:OptionSet><w:Option Name="WINRS_NOPROFILE">FALSE</w:Option><w:Option Name="WINRS_CODEPAGE">65001</w:Option></w:OptionSet></env:Header><env:Body><rsp:Shell><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams></rsp:Shell></env:Body></env:Envelope>HTTP/1.1 200
Content-Type: application/soap+xml;charset=UTF-8
Server: Microsoft-HTTPAPI/2.0
Date: Thu, 29 Oct 2015 01:35:56 GMT
Content-Length: 1628
<s:Envelope xml:lang="en-US" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><s:Header><a:Action>http://schemas.xmlsoap.org/ws/2004/09/transfer/CreateResponse</a:Action><a:MessageID>uuid:44B4A4F1-5745-499C-BC5A-3DF2A4EF0EDF</a:MessageID><a:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:To><a:RelatesTo>uuid:C93D6806-A817-4A02-B4F1-3C6FD0670DBF</a:RelatesTo></s:Header><s:Body><x:ResourceCreated><a:Address>http://192.168.137.222:5985/wsman</a:Address><a:ReferenceParameters><w:ResourceURI>http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd</w:ResourceURI><w:SelectorSet><w:Selector Name="ShellId">4D2CA1F3-5789-4A42-B6BD-F6734BBB935C</w:Selector></w:SelectorSet></a:ReferenceParameters></x:ResourceCreated><rsp:Shell xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell"><rsp:ShellId>4D2CA1F3-5789-4A42-B6BD-F6734BBB935C</rsp:ShellId><rsp:ResourceUri>http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd</rsp:ResourceUri><rsp:Owner>vagrant</rsp:Owner><rsp:ClientIP>192.168.137.126</rsp:ClientIP><rsp:IdleTimeOut>PT7200.000S</rsp:IdleTimeOut><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams><rsp:ShellRunTime>P0DT0H0M0S</rsp:ShellRunTime><rsp:ShellInactivity>P0DT0H0M0S</rsp:ShellInactivity></rsp:Shell></s:Body></s:Envelope>POST /wsman HTTP/1.1
Content-Type: application/soap+xml;charset=UTF-8
Authorization: Basic dmFncmFudDp2YWdyYW50
User-Agent: Ruby WinRM Client (2.6.0.1, ruby 2.0.0 (2015-04-13))
Accept: */*
Date: Thu, 29 Oct 2015 01:35:56 GMT
Content-Length: 1758
Host: 192.168.137.222:5985
<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:b="http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd" xmlns:n="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:cfg="http://schemas.microsoft.com/wbem/wsman/1/config"><env:Header><a:To>http://192.168.137.222:5985/wsman</a:To><a:ReplyTo><a:Address mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:MaxEnvelopeSize mustUnderstand="true">153600</w:MaxEnvelopeSize><a:MessageID>uuid:3FC4E975-A997-412A-9A0E-AAA0B9F6C47E</a:MessageID><w:Locale xml:lang="en-US" mustUnderstand="false"/><p:DataLocale xml:lang="en-US" mustUnderstand="false"/><w:OperationTimeout>PT60S</w:OperationTimeout><w:ResourceURI mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd</w:ResourceURI><a:Action mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/Command</a:Action><w:OptionSet><w:Option Name="WINRS_CONSOLEMODE_STDIN">TRUE</w:Option><w:Option Name="WINRS_SKIP_CMD_SHELL">FALSE</w:Option></w:OptionSet><w:SelectorSet><w:Selector Name="ShellId">4D2CA1F3-5789-4A42-B6BD-F6734BBB935C</w:Selector></w:SelectorSet></env:Header><env:Body><rsp:CommandLine><rsp:Command>&quot;exit 100&quot;</rsp:Command></rsp:CommandLine></env:Body></env:Envelope>HTTP/1.1 200
Content-Type: application/soap+xml;charset=UTF-8
Server: Microsoft-HTTPAPI/2.0
Date: Thu, 29 Oct 2015 01:35:56 GMT
Content-Length: 847
<s:Envelope xml:lang="en-US" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><s:Header><a:Action>http://schemas.microsoft.com/wbem/wsman/1/windows/shell/CommandResponse</a:Action><a:MessageID>uuid:913F7A0D-044F-4407-B72A-4FA39E2FA5B3</a:MessageID><a:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:To><a:RelatesTo>uuid:3FC4E975-A997-412A-9A0E-AAA0B9F6C47E</a:RelatesTo></s:Header><s:Body><rsp:CommandResponse><rsp:CommandId>571C7F38-3837-4A1C-9B91-449915B12205</rsp:CommandId></rsp:CommandResponse></s:Body></s:Envelope>POST /wsman HTTP/1.1
Content-Type: application/soap+xml;charset=UTF-8
Authorization: Basic dmFncmFudDp2YWdyYW50
User-Agent: Ruby WinRM Client (2.6.0.1, ruby 2.0.0 (2015-04-13))
Accept: */*
Date: Thu, 29 Oct 2015 01:35:56 GMT
Content-Length: 1667
Host: 192.168.137.222:5985
<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:b="http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd" xmlns:n="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:cfg="http://schemas.microsoft.com/wbem/wsman/1/config"><env:Header><a:To>http://192.168.137.222:5985/wsman</a:To><a:ReplyTo><a:Address mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:MaxEnvelopeSize mustUnderstand="true">153600</w:MaxEnvelopeSize><a:MessageID>uuid:75DDA4A4-0FF8-45E5-B80A-710F6FE69CD7</a:MessageID><w:Locale xml:lang="en-US" mustUnderstand="false"/><p:DataLocale xml:lang="en-US" mustUnderstand="false"/><w:OperationTimeout>PT60S</w:OperationTimeout><w:ResourceURI mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd</w:ResourceURI><a:Action mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/Receive</a:Action><w:SelectorSet><w:Selector Name="ShellId">4D2CA1F3-5789-4A42-B6BD-F6734BBB935C</w:Selector></w:SelectorSet></env:Header><env:Body><rsp:Receive><rsp:DesiredStream CommandId="571C7F38-3837-4A1C-9B91-449915B12205">stdout stderr</rsp:DesiredStream></rsp:Receive></env:Body></env:Envelope>HTTP/1.1 200
Content-Type: application/soap+xml;charset=UTF-8
Server: Microsoft-HTTPAPI/2.0
Date: Thu, 29 Oct 2015 01:35:56 GMT
Content-Length: 921
<s:Envelope xml:lang="en-US" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><s:Header><a:Action>http://schemas.microsoft.com/wbem/wsman/1/windows/shell/ReceiveResponse</a:Action><a:MessageID>uuid:3E696A54-4020-4663-90EB-7966E24AF42A</a:MessageID><a:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:To><a:RelatesTo>uuid:75DDA4A4-0FF8-45E5-B80A-710F6FE69CD7</a:RelatesTo></s:Header><s:Body><rsp:ReceiveResponse><rsp:CommandState CommandId="571C7F38-3837-4A1C-9B91-449915B12205" State="http://schemas.microsoft.com/wbem/wsman/1/windows/shell/CommandState/Done"><rsp:ExitCode>0</rsp:ExitCode></rsp:CommandState></rsp:ReceiveResponse></s:Body></s:Envelope>POST /wsman HTTP/1.1
Content-Type: application/soap+xml;charset=UTF-8
Authorization: Basic dmFncmFudDp2YWdyYW50
User-Agent: Ruby WinRM Client (2.6.0.1, ruby 2.0.0 (2015-04-13))
Accept: */*
Date: Thu, 29 Oct 2015 01:35:59 GMT
Content-Length: 1705
Host: 192.168.137.222:5985
<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:b="http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd" xmlns:n="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:cfg="http://schemas.microsoft.com/wbem/wsman/1/config"><env:Header><a:To>http://192.168.137.222:5985/wsman</a:To><a:ReplyTo><a:Address mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:MaxEnvelopeSize mustUnderstand="true">153600</w:MaxEnvelopeSize><a:MessageID>uuid:3E2CB84E-D816-42EB-B3E6-8434256A80F4</a:MessageID><w:Locale xml:lang="en-US" mustUnderstand="false"/><p:DataLocale xml:lang="en-US" mustUnderstand="false"/><w:OperationTimeout>PT60S</w:OperationTimeout><w:ResourceURI mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd</w:ResourceURI><a:Action mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/Signal</a:Action><w:SelectorSet><w:Selector Name="ShellId">4D2CA1F3-5789-4A42-B6BD-F6734BBB935C</w:Selector></w:SelectorSet></env:Header><env:Body><rsp:Signal CommandId="571C7F38-3837-4A1C-9B91-449915B12205"><rsp:Code>http://schemas.microsoft.com/wbem/wsman/1/windows/shell/signal/terminate</rsp:Code></rsp:Signal></env:Body></env:Envelope>HTTP/1.1 200
Content-Type: application/soap+xml;charset=UTF-8
Server: Microsoft-HTTPAPI/2.0
Date: Thu, 29 Oct 2015 01:35:59 GMT
Content-Length: 757
<s:Envelope xml:lang="en-US" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><s:Header><a:Action>http://schemas.microsoft.com/wbem/wsman/1/windows/shell/SignalResponse</a:Action><a:MessageID>uuid:935D2587-0924-4BF1-BA00-0AFD4B6FC90B</a:MessageID><a:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:To><a:RelatesTo>uuid:3E2CB84E-D816-42EB-B3E6-8434256A80F4</a:RelatesTo></s:Header><s:Body><rsp:SignalResponse/></s:Body></s:Envelope>POST /wsman HTTP/1.1
Content-Type: application/soap+xml;charset=UTF-8
Authorization: Basic dmFncmFudDp2YWdyYW50
User-Agent: Ruby WinRM Client (2.6.0.1, ruby 2.0.0 (2015-04-13))
Accept: */*
Date: Thu, 29 Oct 2015 01:35:59 GMT
Content-Length: 1519
Host: 192.168.137.222:5985
<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:b="http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd" xmlns:n="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:cfg="http://schemas.microsoft.com/wbem/wsman/1/config"><env:Header><a:To>http://192.168.137.222:5985/wsman</a:To><a:ReplyTo><a:Address mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:MaxEnvelopeSize mustUnderstand="true">153600</w:MaxEnvelopeSize><a:MessageID>uuid:F7F0B82D-7CD4-4AC0-83AA-455AF6D1887F</a:MessageID><w:Locale xml:lang="en-US" mustUnderstand="false"/><p:DataLocale xml:lang="en-US" mustUnderstand="false"/><w:OperationTimeout>PT60S</w:OperationTimeout><w:ResourceURI mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd</w:ResourceURI><a:Action mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Delete</a:Action><w:SelectorSet><w:Selector Name="ShellId">4D2CA1F3-5789-4A42-B6BD-F6734BBB935C</w:Selector></w:SelectorSet></env:Header><env:Body/></env:Envelope>HTTP/1.1 200
Content-Type: application/soap+xml;charset=UTF-8
Server: Microsoft-HTTPAPI/2.0
Date: Thu, 29 Oct 2015 01:35:59 GMT
Content-Length: 602
<s:Envelope xml:lang="en-US" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><s:Header><a:Action>http://schemas.xmlsoap.org/ws/2004/09/transfer/DeleteResponse</a:Action><a:MessageID>uuid:A3E7C0D7-48BE-475D-AE05-97841C6DE163</a:MessageID><a:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:To><a:RelatesTo>uuid:F7F0B82D-7CD4-4AC0-83AA-455AF6D1887F</a:RelatesTo></s:Header><s:Body></s:Body></s:Envelope>
POST /wsman HTTP/1.1
Connection: Keep-Alive
Content-Type: application/soap+xml;charset=UTF-8
Authorization: Negotiate TlRMTVNTUAABAAAAl4II4gAAAAAAAAAAAAAAAAAAAAAGA4AlAAAADw==
User-Agent: Microsoft WinRM Client
Content-Length: 0
Host: 192.168.137.222:5985
HTTP/1.1 401
WWW-Authenticate: Negotiate TlRMTVNTUAACAAAAHgAeADgAAAAVgoriFfj+QsKWcCwAAAAAAAAAAJgAmABWAAAABgOAJQAAAA9XAEkATgAtADgASgA3ADQARABJADEARwA0AFMATwACAB4AVwBJAE4ALQA4AEoANwA0AEQASQAxAEcANABTAE8AAQAeAFcASQBOAC0AOABKADcANABEAEkAMQBHADQAUwBPAAQAHgBXAEkATgAtADgASgA3ADQARABJADEARwA0AFMATwADAB4AVwBJAE4ALQA4AEoANwA0AEQASQAxAEcANABTAE8ABwAIAG7tGhfpEdEBAAAAAA==
Server: Microsoft-HTTPAPI/2.0
Date: Thu, 29 Oct 2015 01:28:18 GMT
Content-Length: 0
POST /wsman HTTP/1.1
Connection: Keep-Alive
Content-Type: application/soap+xml;charset=UTF-8
Authorization: Negotiate TlRMTVNTUAADAAAAGAAYAKIAAABIAUgBugAAAB4AHgBYAAAADgAOAHYAAAAeAB4AhAAAABAAEAACAgAAFYKI4gYDgCUAAAAPRFdTF22TL67/uIpCX3UibFcASQBOAC0ANQBFADcAOQBTAFIAOQBDADMAMgAyAHYAYQBnAHIAYQBuAHQAVwBJAE4ALQA1AEUANwA5AFMAUgA5AEMAMwAyADIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//uE93iucL38Bsn6t2Gq5gEBAAAAAAAAbu0aF+kR0QH50X7dCJnEDAAAAAACAB4AVwBJAE4ALQA4AEoANwA0AEQASQAxAEcANABTAE8AAQAeAFcASQBOAC0AOABKADcANABEAEkAMQBHADQAUwBPAAQAHgBXAEkATgAtADgASgA3ADQARABJADEARwA0AFMATwADAB4AVwBJAE4ALQA4AEoANwA0AEQASQAxAEcANABTAE8ABwAIAG7tGhfpEdEBBgAEAAIAAAAIADAAMAAAAAAAAAAAAAAAADAAAPX/riDUqfP2y6J+eY0LgWzWiaSNvQjM0tJIFtL6sWyNCgAQAAAAAAAAAAAAAAAAAAAAAAAJACgASABUAFQAUAAvADEAOQAyAC4AMQA2ADgALgAxADMANwAuADIAMgAyAAAAAAAAAAAAAAAAAETvbOC84CN+rr5pJecv7WI=
User-Agent: Microsoft WinRM Client
Content-Length: 1587
Host: 192.168.137.222:5985
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><s:Header><a:To>http://192.168.137.222:5985/wsman</a:To><w:ResourceURI s:mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd</w:ResourceURI><a:ReplyTo><a:Address s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><a:Action s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Create</a:Action><w:MaxEnvelopeSize s:mustUnderstand="true">512000</w:MaxEnvelopeSize><a:MessageID>uuid:3D7E43E8-AE65-4F8C-A571-54F4F86971CF</a:MessageID><w:Locale xml:lang="en-US" s:mustUnderstand="false" /><p:DataLocale xml:lang="en-US" s:mustUnderstand="false" /><p:SessionId s:mustUnderstand="false">uuid:330BF004-DFF1-4682-866E-E63113E331B8</p:SessionId><p:OperationID s:mustUnderstand="false">uuid:DD0D5564-622A-45A8-9012-0C5711CBEC5E</p:OperationID><p:SequenceId s:mustUnderstand="false">1</p:SequenceId><w:OptionSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><w:Option Name="WINRS_NOPROFILE">FALSE</w:Option><w:Option Name="WINRS_CODEPAGE">437</w:Option></w:OptionSet><w:OperationTimeout>PT60.000S</w:OperationTimeout></s:Header><s:Body><rsp:Shell xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell"><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams></rsp:Shell></s:Body></s:Envelope>HTTP/1.1 200
Content-Type: application/soap+xml;charset=UTF-8
Server: Microsoft-HTTPAPI/2.0
Date: Thu, 29 Oct 2015 01:28:18 GMT
Content-Length: 1771
<s:Envelope xml:lang="en-US" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><s:Header><a:Action>http://schemas.xmlsoap.org/ws/2004/09/transfer/CreateResponse</a:Action><a:MessageID>uuid:04ED0B1F-F25D-4B69-81DB-059C436DE4D4</a:MessageID><p:OperationID s:mustUnderstand="false">uuid:DD0D5564-622A-45A8-9012-0C5711CBEC5E</p:OperationID><p:SequenceId>1</p:SequenceId><a:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:To><a:RelatesTo>uuid:3D7E43E8-AE65-4F8C-A571-54F4F86971CF</a:RelatesTo></s:Header><s:Body><x:ResourceCreated><a:Address>http://192.168.137.222:5985/wsman</a:Address><a:ReferenceParameters><w:ResourceURI>http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd</w:ResourceURI><w:SelectorSet><w:Selector Name="ShellId">05B5B7AF-01D8-4227-8686-8DDDAC78068F</w:Selector></w:SelectorSet></a:ReferenceParameters></x:ResourceCreated><rsp:Shell xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell"><rsp:ShellId>05B5B7AF-01D8-4227-8686-8DDDAC78068F</rsp:ShellId><rsp:ResourceUri>http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd</rsp:ResourceUri><rsp:Owner>WIN-8J74DI1G4SO\vagrant</rsp:Owner><rsp:ClientIP>192.168.137.126</rsp:ClientIP><rsp:IdleTimeOut>PT7200.000S</rsp:IdleTimeOut><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams><rsp:ShellRunTime>P0DT0H0M0S</rsp:ShellRunTime><rsp:ShellInactivity>P0DT0H0M0S</rsp:ShellInactivity></rsp:Shell></s:Body></s:Envelope>POST /wsman HTTP/1.1
Connection: Keep-Alive
Content-Type: application/soap+xml;charset=UTF-8
User-Agent: Microsoft WinRM Client
Content-Length: 1630
Host: 192.168.137.222:5985
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><s:Header><a:To>http://192.168.137.222:5985/wsman</a:To><w:ResourceURI s:mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd</w:ResourceURI><a:ReplyTo><a:Address s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><a:Action s:mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/Command</a:Action><w:MaxEnvelopeSize s:mustUnderstand="true">512000</w:MaxEnvelopeSize><a:MessageID>uuid:00D17913-A12E-427A-82EC-B585706196B2</a:MessageID><w:Locale xml:lang="en-US" s:mustUnderstand="false" /><p:DataLocale xml:lang="en-US" s:mustUnderstand="false" /><p:SessionId s:mustUnderstand="false">uuid:330BF004-DFF1-4682-866E-E63113E331B8</p:SessionId><p:OperationID s:mustUnderstand="false">uuid:19B634FE-616C-47DD-8AF0-023E7B77235F</p:OperationID><p:SequenceId s:mustUnderstand="false">1</p:SequenceId><w:SelectorSet><w:Selector Name="ShellId">05B5B7AF-01D8-4227-8686-8DDDAC78068F</w:Selector></w:SelectorSet><w:OptionSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><w:Option Name="WINRS_CONSOLEMODE_STDIN">TRUE</w:Option></w:OptionSet><w:OperationTimeout>PT60.000S</w:OperationTimeout></s:Header><s:Body><rsp:CommandLine xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell"><rsp:Command>&quot;exit 100&quot;</rsp:Command></rsp:CommandLine></s:Body></s:Envelope>HTTP/1.1 200
Content-Type: application/soap+xml;charset=UTF-8
Server: Microsoft-HTTPAPI/2.0
Date: Thu, 29 Oct 2015 01:28:18 GMT
Content-Length: 974
<s:Envelope xml:lang="en-US" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><s:Header><a:Action>http://schemas.microsoft.com/wbem/wsman/1/windows/shell/CommandResponse</a:Action><a:MessageID>uuid:8279533E-9BCB-433A-B9D9-AA02A24D151F</a:MessageID><p:OperationID s:mustUnderstand="false">uuid:19B634FE-616C-47DD-8AF0-023E7B77235F</p:OperationID><p:SequenceId>1</p:SequenceId><a:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:To><a:RelatesTo>uuid:00D17913-A12E-427A-82EC-B585706196B2</a:RelatesTo></s:Header><s:Body><rsp:CommandResponse><rsp:CommandId>CD31D893-EC4A-4CC9-9817-2BCCAB7F67CF</rsp:CommandId></rsp:CommandResponse></s:Body></s:Envelope>POST /wsman HTTP/1.1
Connection: Keep-Alive
Content-Type: application/soap+xml;charset=UTF-8
User-Agent: Microsoft WinRM Client
Content-Length: 1700
Host: 192.168.137.222:5985
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><s:Header><a:To>http://192.168.137.222:5985/wsman</a:To><a:ReplyTo><a:Address s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><a:Action s:mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/Receive</a:Action><w:MaxEnvelopeSize s:mustUnderstand="true">512000</w:MaxEnvelopeSize><a:MessageID>uuid:B4A2DDD6-F455-4116-88F8-08C1A12BCE69</a:MessageID><w:Locale xml:lang="en-US" s:mustUnderstand="false" /><p:DataLocale xml:lang="en-US" s:mustUnderstand="false" /><p:SessionId s:mustUnderstand="false">uuid:330BF004-DFF1-4682-866E-E63113E331B8</p:SessionId><p:OperationID s:mustUnderstand="false">uuid:A030EC4A-2191-45D5-B7BA-69D4B238E501</p:OperationID><p:SequenceId s:mustUnderstand="false">1</p:SequenceId><w:ResourceURI xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd</w:ResourceURI><w:SelectorSet xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"><w:Selector Name="ShellId">05B5B7AF-01D8-4227-8686-8DDDAC78068F</w:Selector></w:SelectorSet><w:OperationTimeout>PT60.000S</w:OperationTimeout></s:Header><s:Body><rsp:Receive xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" SequenceId="0"><rsp:DesiredStream CommandId="CD31D893-EC4A-4CC9-9817-2BCCAB7F67CF">stdout stderr</rsp:DesiredStream></rsp:Receive></s:Body></s:Envelope>HTTP/1.1 200
Content-Type: application/soap+xml;charset=UTF-8
Server: Microsoft-HTTPAPI/2.0
Date: Thu, 29 Oct 2015 01:28:18 GMT
Content-Length: 1248
<s:Envelope xml:lang="en-US" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><s:Header><a:Action>http://schemas.microsoft.com/wbem/wsman/1/windows/shell/ReceiveResponse</a:Action><a:MessageID>uuid:EB5794DC-A9E5-40DC-B5B4-75A95FAE8A50</a:MessageID><a:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:To><p:OperationID s:mustUnderstand="false">uuid:A030EC4A-2191-45D5-B7BA-69D4B238E501</p:OperationID><p:SequenceId>1</p:SequenceId><a:RelatesTo>uuid:B4A2DDD6-F455-4116-88F8-08C1A12BCE69</a:RelatesTo></s:Header><s:Body><rsp:ReceiveResponse><rsp:Stream Name="stdout" CommandId="CD31D893-EC4A-4CC9-9817-2BCCAB7F67CF" End="true"></rsp:Stream><rsp:Stream Name="stderr" CommandId="CD31D893-EC4A-4CC9-9817-2BCCAB7F67CF" End="true"></rsp:Stream><rsp:CommandState CommandId="CD31D893-EC4A-4CC9-9817-2BCCAB7F67CF" State="http://schemas.microsoft.com/wbem/wsman/1/windows/shell/CommandState/Done"><rsp:ExitCode>100</rsp:ExitCode></rsp:CommandState></rsp:ReceiveResponse></s:Body></s:Envelope>POST /wsman HTTP/1.1
Connection: Keep-Alive
Content-Type: application/soap+xml;charset=UTF-8
User-Agent: Microsoft WinRM Client
Content-Length: 716
Host: 192.168.137.222:5985
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><s:Header><a:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:To><w:ResourceURI s:mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/wsman/FullDuplex</w:ResourceURI><a:Action s:mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/wsman/End</a:Action><a:MessageID>uuid:590B5434-6A8D-4E49-8A6B-23B68718E0E4</a:MessageID><p:OperationID>uuid:A030EC4A-2191-45D5-B7BA-69D4B238E501</p:OperationID></s:Header><s:Body></s:Body></s:Envelope>HTTP/1.1 204
Server: Microsoft-HTTPAPI/2.0
Date: Thu, 29 Oct 2015 01:28:18 GMT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment