locked
MS-WSMV: unable to enumerate remote shells RRS feed

  • Question

  • Section 3.1.4.8.2 of the MS-WSMV specification indicates that I should be able to use a WS-Enumeration enumerate operation to list active shell instances.  However, the following SOAP request:

    <ns4:Envelope xmlns:ns2="http://schemas.microsoft.com/wbem/wsman/1/config" xmlns:ns3="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:ns4="http://www.w3.org/2003/05/soap-envelope" xmlns:ns5="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ns6="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:ns7="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:ns8="http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd" xmlns:ns9="http://www.w3.org/2005/08/addressing" xmlns:ns10="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:ns11="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:ns12="http://schemas.xmlsoap.org/ws/2004/09/transfer">
        <ns4:Header>
            <ns6:To ns4:mustUnderstand="true">http://192.168.0.102:5985/wsman</ns6:To>
            <ns6:ReplyTo>
                <ns6:Address ns4:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</ns6:Address>
            </ns6:ReplyTo>
            <ns6:Action ns4:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate</ns6:Action>
            <ns6:MessageID>uuid:B563E29D-1802-4EB8-8279-2D3101ED1BE9</ns6:MessageID>
            <ns7:ResourceURI ns4:mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd</ns7:ResourceURI>
            <ns7:MaxEnvelopeSize ns4:mustUnderstand="true">153600</ns7:MaxEnvelopeSize>
            <ns7:Locale xml:lang="en-US" ns4:mustUnderstand="false"/>
        </ns4:Header>
        <ns4:Body>
            <ns10:Enumerate/>
        </ns4:Body>
    </ns4:Envelope>

    Yields the following SOAP Fault (this is the processed output from the server, not the raw output, but the content is semantically equivalent):

    <ns4:Fault xmlns:ns2="http://schemas.microsoft.com/wbem/wsman/1/config" xmlns:ns3="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:ns4="http://www.w3.org/2003/05/soap-envelope" xmlns:ns5="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ns6="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:ns7="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:ns8="http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd" xmlns:ns9="http://www.w3.org/2005/08/addressing" xmlns:ns10="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:ns11="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:ns12="http://schemas.xmlsoap.org/ws/2004/09/transfer">
        <ns4:Code>
            <ns4:Value>ns4:Sender</ns4:Value>
            <ns4:Subcode>
                <ns4:Value>ns6:ActionNotSupported</ns4:Value>
            </ns4:Subcode>
        </ns4:Code>
        <ns4:Reason>
            <ns4:Text xml:lang="en-US">The WS-Management service cannot process the request because the WS-Addressing Action URI in the request is not compatible with the resource. </ns4:Text>
        </ns4:Reason>
        <ns4:Detail>
            <ns7:FaultDetail>http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/ActionMismatch</ns7:FaultDetail>
            <f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:n="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" Code="2150858801" Machine="192.168.0.102">
                <f:Message>The WS-Management service cannot process the request. The resource URI does not support the Enumerate operation. </f:Message>
            </f:WSManFault>
        </ns4:Detail>
    </ns4:Fault>

    Thursday, August 2, 2012 9:32 PM

Answers

All replies

  • Hi fhv_dave,

    Thanks for your question.

    Someone from our team will get in touch with you shortly.

    Thanks!


    SEBASTIAN CANEVARI - MSFT Escalation Engineer Protocol Documentation Team

    Friday, August 3, 2012 2:31 PM
  • Hi fhv_dave:

    I'll help you with this issue and will be in touch as soon as I have an answer.


    Regards, Obaid Farooqi

    Friday, August 3, 2012 9:24 PM
  • Hi

    In MS-WSMV section “7   Appendix B: Product Behavior”, the following behavior note addresses the problem you are encountering:

    <114> Section 3.1.4.8.2: Windows Server 2003 R2, Windows Vista SP1, and Windows Server 2008 support wsen:Enumerate operations on the resource URIs specified. On Windows Server 2003 R2 with KB968930, Windows Vista SP1 with KB968930, Windows Server 2008 with KB968930, Windows 7, Windows Server 2008 R2, Windows 8, and Windows Server 2012, the resource URI http://schemas.microsoft.com/wbem/wsman/1/windows/shell is used for wsen:Enmerate operations regardless of the type of shell. If another resource URI (such as http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd) is specified, a wsa:ActionNotSupported fault is returned.

    Looking at your request, the resource URI is

    <ns7:ResourceURI ns4:mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd </ns7:ResourceURI>

    Based on above windows behavior note, the error you are receiving ( <ns4:Value>ns6:ActionNotSupported</ns4:Value> ) is expected. Please specify resource URI http://schemas.microsoft.com/wbem/wsman/1/windows/shell in your request.

    Please let us know if it does not resolve your issue.


    Regards, Obaid Farooqi

    Tuesday, August 14, 2012 5:27 PM