test-wsman error with fqdn

Olivier Simon 1 Reputation point
2022-04-22T15:06:43.907+00:00

Hi,
I have a windows 2016 server whose name is romulus.admiveli.local:
PS C:\Windows\system32> nslookup romulus
Serveur : localhost
Address: 127.0.0.1
Nom : romulus.admiveli.local
Address: 192.168.127.1

when i do:
PS C:\Windows\system32> Test-WSMan -ComputerName localhost
wsmid : http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd
ProtocolVersion : http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd
ProductVendor : Microsoft Corporation
ProductVersion : OS: 0.0.0 SP: 0.0 Stack: 3.0

but:
PS C:\Windows\system32> Test-WSMan -ComputerName romulus.admiveli.local
Test-WSMan : <f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" Code="2150859026"
Machine="ROMULUS.admiveli.local"><f:Message>La connexion à l’hôte distant spécifié a été rejetée. Vérifiez que le
service Gestion des services Web est en cours d’exécution sur l’hôte distant et configuré pour écouter les demandes
sur le port et l’URL HTTP corrects. </f:Message></f:WSManFault>
Au caractère Ligne:1 : 1

  • Test-WSMan -ComputerName romulus.admiveli.local
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : InvalidOperation : (romulus.admiveli.local:String) [Test-WSMan], InvalidOperationExcepti
    on
  • FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.TestWSManCommand

Any idea?

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,979 questions
Windows Server Management
Windows Server Management
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Management: The act or process of organizing, handling, directing or controlling something.
368 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Olivier Simon 1 Reputation point
    2022-04-25T08:47:31.813+00:00

    From another computer, same error:

    PS C:\Windows\system32> Test-WSMan romulus.admiveli.local
    Test-WSMan : <f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" Code="2150859026"
    Machine="REMUS.admiveli.local"><f:Message>La connexion à l’hôte distant spécifié a été rejetée. Vérifiez que le
    service Gestion des services Web est en cours d’exécution sur l’hôte distant et configuré pour écouter les demandes
    sur le port et l’URL HTTP corrects. </f:Message></f:WSManFault>
    Au caractère Ligne:1 : 1

    • Test-WSMan romulus.admiveli.local
    • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidOperation : (romulus.admiveli.local:String) [Test-WSMan], InvalidOperationExcepti
      on
    • FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.TestWSManCommand

    Also i checked Windows Event Logs > Applications and Services Logs > Microsoft > Windows > Windows Remote Management > Operational:

    L’opération WSMan Identify a démarré sans l’URI de ressource NotSpecified
    L’opération WSMan Identify a échoué, code d’erreur 2150859026

    0 comments No comments

  2. MotoX80 25,676 Reputation points
    2022-04-25T13:25:37.39+00:00

    I believe that the "dot one" address is normally the router. Are you sure that you have the correct IP address? You are using the localhost as the DNS server,. What about the rest of the machines on your network? What DNS servers are they using?

    Does this command show that it is listening on 192.168.127.1?

      winrm enumerate winrm/config/listener
    
    0 comments No comments

  3. Olivier Simon 1 Reputation point
    2022-04-25T13:36:17.053+00:00

    Yes 192.168.127.1 is the correct address. It is the domain controller and all the machines of the domain use 192.168.127.1 as the DNS Server.
    PS C:\Windows\system32> winrm e winrm/config/listener
    Listener
    Address = *
    Transport = HTTP
    Port = 5985
    Hostname
    Enabled = true
    URLPrefix = wsman
    CertificateThumbprint
    ListeningOn = 127.0.0.1, 192.168.127.1, ::1, fe80::5efe:192.168.127.1%7, fe80::ffff:ffff:fffe%4, fe80::90a6:18aa:8767:7c0e%2

    0 comments No comments

  4. MotoX80 25,676 Reputation points
    2022-04-25T14:28:21.52+00:00

    This site suggests that the Code="2150859026" error is a firewall issue and to set the Network Location to Private.

    https://social.technet.microsoft.com/Forums/en-US/0ee1c380-d75a-49aa-8508-aa8a05c888de/winrm-local-connectivity-issue

    Or maybe enable the WinRM rule for Public.

    196253-capture.png

    0 comments No comments

  5. Olivier Simon 1 Reputation point
    2022-04-26T09:41:09.4+00:00

    The public winrm rule was enabled. I tried several configurations: I put the private/domain to private, I disabled the public rule. But always the same error:
    L’opération WSMan Identify a échoué, code d’erreur 2150859026
    Now I m on holidays until the end of the week but always interested in your suggestions.