WinRM failes to connect, is it possible to reset client?

This topic contains 3 replies, has 2 voices, and was last updated by Profile photo of GS GS 2 months, 2 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #45533
    Profile photo of GS
    GS
    Participant

    Hello,

    For some reason any external Wsman communication ends up in error. I try to use Test-Wsman cmdlet on non-existent box and it immeditately fails, if I use real host it fails with the same error message. I can see via network capture that connection is not event attempted to be made. This was working before but stopped working for some reason. I ruled out a bunch of stuff already (network, corrupted user profile, etc), still issue happens. Searched if it's possible to reset Wsman client but did not find a way to do that either. Any ideas where to look else short of reinstalling OS>

    [ADMIN]: PS > test-wsman nonexistentserver
    test-wsman : The WinRM client sent a request to an HTTP server
    and got a response saying the requested HTTP URL was not available. This is usually returned by a HTTP server that does not support the WS-Management protocol. 
    At line:1 char:1
    + test-wsman nonexistentserver
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (nonexistentserver:String) [Test-WSMan], InvalidOperationException
        + FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.TestWSManCommand
    
    #45538
    Profile photo of Nigel Tatschner
    Nigel Tatschner
    Participant

    Have you tried PSExec?

    https://technet.microsoft.com/en-us/sysinternals/psexec.aspx?f=255&MSPPError=-2147217396

    This is a great way to get around some connection issues

    #45540
    Profile photo of GS
    GS
    Participant

    I need wsman to work, issue is not connectivity since it fails with the same error message for existant and non existant hosts. Connection is not even attempted to be made.

    #46133
    Profile photo of GS
    GS
    Participant

    In case somebody else runs into this.
    Issue turns to be HTTP proxy setup on my machine which was directing HTTP traffic to proxy server instead. Unfortunately Test-Wsman does not allow to specify options for connection to bypass proxy and hence it will fail in such situation.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.