I am attempting to make a change to our RDS deployment but WinRM is broken on some of our session hosts. From what I can gather it’s some issue with one of our GPOs, but I cannot figure it out as the settings are the same.<\/p>\n
Our connection broker and most of our session hosts are working fine. We have one GPO that is applied to one OU that has 3 session hosts, all 3 of these are broken. The only setting that this GPO sets in terms of WinRM is “Allow remote server management through WinRM” and IPv4 is * and IPv6 is blank. I made a test GPO that sets both to * but that did not help.<\/p>\n
The odd thing is, the settings are all the same (except the IPv6 filter, but I’ll show that later). If I do Test-WSMan this is what I get.<\/p>\n
ConnectionBroker > BrokenHost1 = Does not work\nConnectionBroker > WorkingHost = Works\nWorkingHost > BrokenHost1 = Does not work\nBrokenHost1 > WorkingHost or ConnectionBroker = Does not work\nBrokenHost1 > BrokenHost2 = Works\nBrokenHost2 > BrokenHost1 = Works\nBrokenHost2 > WorkingHost or ConnectionBroker = Does not work\n\nThe next thing I tried was to remove the server from the GPO then completely reset the WinRM settings. That also did not work.\n\nSince servers do work between each other I don't think it's a network issue. Test-NetConnection also works using the port.\n\nBelow are the settings. Please let me know what I can try or if you need more logs or information. \n\nNot Working server\nwinrm enumerate winrm/config/listener\nListener\n Address = *\n Transport = HTTP\n Port = 5985\n Hostname\n Enabled = true\n URLPrefix = wsman\n CertificateThumbprint\n ListeningOn = 10.10.18.4, 127.0.0.1, ::1, fe80::f694:9325:b091:25a1%15\n\nwinrm get winrm/config\nConfig\n MaxEnvelopeSizekb = 500\n MaxTimeoutms = 60000\n MaxBatchItems = 32000\n MaxProviderRequests = 4294967295\n Client\n NetworkDelayms = 5000\n URLPrefix = wsman\n AllowUnencrypted = false [Source=\"GPO\"]\n Auth\n Basic = false [Source=\"GPO\"]\n Digest = false [Source=\"GPO\"]\n Kerberos = true\n Negotiate = true\n Certificate = true\n CredSSP = false\n DefaultPorts\n HTTP = 5985\n HTTPS = 5986\n TrustedHosts\n Service\n RootSDDL = O:NSG:BAD:P(A;;GA;;;BA)(A;;GR;;;IU)S:P(AU;FA;GA;;;WD)(AU;SA;GXGW;;;WD)\n MaxConcurrentOperations = 4294967295\n MaxConcurrentOperationsPerUser = 1500\n EnumerationTimeoutms = 240000\n MaxConnections = 300\n MaxPacketRetrievalTimeSeconds = 120\n AllowUnencrypted = false [Source=\"GPO\"]\n Auth\n Basic = false [Source=\"GPO\"]\n Kerberos = true\n Negotiate = true\n Certificate = false\n CredSSP = false\n CbtHardeningLevel = Relaxed\n DefaultPorts\n HTTP = 5985\n HTTPS = 5986\n IPv4Filter = *\n IPv6Filter = *\n EnableCompatibilityHttpListener = false\n EnableCompatibilityHttpsListener = false\n CertificateThumbprint\n AllowRemoteAccess = true\n Winrs\n AllowRemoteShellAccess = true\n IdleTimeout = 7200000\n MaxConcurrentUsers = 2147483647\n MaxShellRunTime = 2147483647\n MaxProcessesPerShell = 2147483647\n MaxMemoryPerShellMB = 2147483647\n MaxShellsPerUser = 2147483647\n\nWorking Server:\nwinrm enumerate winrm/config/listener\nListener\n Address = *\n Transport = HTTP\n Port = 5985\n Hostname\n Enabled = true\n URLPrefix = wsman\n CertificateThumbprint\n ListeningOn = 10.10.1.12, 127.0.0.1, ::1, fe80::afe4:1432:509f:7878%14\n\nwinrm get winrm/config\nConfig\n MaxEnvelopeSizekb = 500\n MaxTimeoutms = 60000\n MaxBatchItems = 32000\n MaxProviderRequests = 4294967295\n Client\n NetworkDelayms = 5000\n URLPrefix = wsman\n AllowUnencrypted = false [Source=\"GPO\"]\n Auth\n Basic = false [Source=\"GPO\"]\n Digest = false [Source=\"GPO\"]\n Kerberos = true\n Negotiate = true\n Certificate = true\n CredSSP = false\n DefaultPorts\n HTTP = 5985\n HTTPS = 5986\n TrustedHosts\n Service\n RootSDDL = O:NSG:BAD:P(A;;GA;;;BA)(A;;GR;;;IU)S:P(AU;FA;GA;;;WD)(AU;SA;GXGW;;;WD)\n MaxConcurrentOperations = 4294967295\n MaxConcurrentOperationsPerUser = 1500\n EnumerationTimeoutms = 240000\n MaxConnections = 300\n MaxPacketRetrievalTimeSeconds = 120\n AllowUnencrypted = false [Source=\"GPO\"]\n Auth\n Basic = false [Source=\"GPO\"]\n Kerberos = true\n Negotiate = true\n Certificate = false\n CredSSP = false\n CbtHardeningLevel = Relaxed\n DefaultPorts\n HTTP = 5985\n HTTPS = 5986\n IPv4Filter = *\n IPv6Filter = *\n EnableCompatibilityHttpListener = false\n EnableCompatibilityHttpsListener = false\n CertificateThumbprint\n AllowRemoteAccess = true\n Winrs\n AllowRemoteShellAccess = true\n IdleTimeout = 7200000\n MaxConcurrentUsers = 2147483647\n MaxShellRunTime = 2147483647\n MaxProcessesPerShell = 2147483647\n MaxMemoryPerShellMB = 2147483647\n MaxShellsPerUser = 2147483647\n<\/code><\/pre>","upvoteCount":3,"answerCount":3,"datePublished":"2025-06-26T15:07:38.208Z","author":{"@type":"Person","name":"priBizcus","url":"https://community.spiceworks.com/u/priBizcus"},"suggestedAnswer":[{"@type":"Answer","text":"I am attempting to make a change to our RDS deployment but WinRM is broken on some of our session hosts. From what I can gather it’s some issue with one of our GPOs, but I cannot figure it out as the settings are the same.<\/p>\n
Our connection broker and most of our session hosts are working fine. We have one GPO that is applied to one OU that has 3 session hosts, all 3 of these are broken. The only setting that this GPO sets in terms of WinRM is “Allow remote server management through WinRM” and IPv4 is * and IPv6 is blank. I made a test GPO that sets both to * but that did not help.<\/p>\n
The odd thing is, the settings are all the same (except the IPv6 filter, but I’ll show that later). If I do Test-WSMan this is what I get.<\/p>\n
ConnectionBroker > BrokenHost1 = Does not work\nConnectionBroker > WorkingHost = Works\nWorkingHost > BrokenHost1 = Does not work\nBrokenHost1 > WorkingHost or ConnectionBroker = Does not work\nBrokenHost1 > BrokenHost2 = Works\nBrokenHost2 > BrokenHost1 = Works\nBrokenHost2 > WorkingHost or ConnectionBroker = Does not work\n\nThe next thing I tried was to remove the server from the GPO then completely reset the WinRM settings. That also did not work.\n\nSince servers do work between each other I don't think it's a network issue. Test-NetConnection also works using the port.\n\nBelow are the settings. Please let me know what I can try or if you need more logs or information. \n\nNot Working server\nwinrm enumerate winrm/config/listener\nListener\n Address = *\n Transport = HTTP\n Port = 5985\n Hostname\n Enabled = true\n URLPrefix = wsman\n CertificateThumbprint\n ListeningOn = 10.10.18.4, 127.0.0.1, ::1, fe80::f694:9325:b091:25a1%15\n\nwinrm get winrm/config\nConfig\n MaxEnvelopeSizekb = 500\n MaxTimeoutms = 60000\n MaxBatchItems = 32000\n MaxProviderRequests = 4294967295\n Client\n NetworkDelayms = 5000\n URLPrefix = wsman\n AllowUnencrypted = false [Source=\"GPO\"]\n Auth\n Basic = false [Source=\"GPO\"]\n Digest = false [Source=\"GPO\"]\n Kerberos = true\n Negotiate = true\n Certificate = true\n CredSSP = false\n DefaultPorts\n HTTP = 5985\n HTTPS = 5986\n TrustedHosts\n Service\n RootSDDL = O:NSG:BAD:P(A;;GA;;;BA)(A;;GR;;;IU)S:P(AU;FA;GA;;;WD)(AU;SA;GXGW;;;WD)\n MaxConcurrentOperations = 4294967295\n MaxConcurrentOperationsPerUser = 1500\n EnumerationTimeoutms = 240000\n MaxConnections = 300\n MaxPacketRetrievalTimeSeconds = 120\n AllowUnencrypted = false [Source=\"GPO\"]\n Auth\n Basic = false [Source=\"GPO\"]\n Kerberos = true\n Negotiate = true\n Certificate = false\n CredSSP = false\n CbtHardeningLevel = Relaxed\n DefaultPorts\n HTTP = 5985\n HTTPS = 5986\n IPv4Filter = *\n IPv6Filter = *\n EnableCompatibilityHttpListener = false\n EnableCompatibilityHttpsListener = false\n CertificateThumbprint\n AllowRemoteAccess = true\n Winrs\n AllowRemoteShellAccess = true\n IdleTimeout = 7200000\n MaxConcurrentUsers = 2147483647\n MaxShellRunTime = 2147483647\n MaxProcessesPerShell = 2147483647\n MaxMemoryPerShellMB = 2147483647\n MaxShellsPerUser = 2147483647\n\nWorking Server:\nwinrm enumerate winrm/config/listener\nListener\n Address = *\n Transport = HTTP\n Port = 5985\n Hostname\n Enabled = true\n URLPrefix = wsman\n CertificateThumbprint\n ListeningOn = 10.10.1.12, 127.0.0.1, ::1, fe80::afe4:1432:509f:7878%14\n\nwinrm get winrm/config\nConfig\n MaxEnvelopeSizekb = 500\n MaxTimeoutms = 60000\n MaxBatchItems = 32000\n MaxProviderRequests = 4294967295\n Client\n NetworkDelayms = 5000\n URLPrefix = wsman\n AllowUnencrypted = false [Source=\"GPO\"]\n Auth\n Basic = false [Source=\"GPO\"]\n Digest = false [Source=\"GPO\"]\n Kerberos = true\n Negotiate = true\n Certificate = true\n CredSSP = false\n DefaultPorts\n HTTP = 5985\n HTTPS = 5986\n TrustedHosts\n Service\n RootSDDL = O:NSG:BAD:P(A;;GA;;;BA)(A;;GR;;;IU)S:P(AU;FA;GA;;;WD)(AU;SA;GXGW;;;WD)\n MaxConcurrentOperations = 4294967295\n MaxConcurrentOperationsPerUser = 1500\n EnumerationTimeoutms = 240000\n MaxConnections = 300\n MaxPacketRetrievalTimeSeconds = 120\n AllowUnencrypted = false [Source=\"GPO\"]\n Auth\n Basic = false [Source=\"GPO\"]\n Kerberos = true\n Negotiate = true\n Certificate = false\n CredSSP = false\n CbtHardeningLevel = Relaxed\n DefaultPorts\n HTTP = 5985\n HTTPS = 5986\n IPv4Filter = *\n IPv6Filter = *\n EnableCompatibilityHttpListener = false\n EnableCompatibilityHttpsListener = false\n CertificateThumbprint\n AllowRemoteAccess = true\n Winrs\n AllowRemoteShellAccess = true\n IdleTimeout = 7200000\n MaxConcurrentUsers = 2147483647\n MaxShellRunTime = 2147483647\n MaxProcessesPerShell = 2147483647\n MaxMemoryPerShellMB = 2147483647\n MaxShellsPerUser = 2147483647\n<\/code><\/pre>","upvoteCount":3,"datePublished":"2025-06-26T15:07:38.283Z","url":"https://community.spiceworks.com/t/problems-with-winrm/1218747/1","author":{"@type":"Person","name":"priBizcus","url":"https://community.spiceworks.com/u/priBizcus"}},{"@type":"Answer","text":"Anyone have any ideas on this or at least next steps? I’m kind of at a loss on this.<\/p>","upvoteCount":1,"datePublished":"2025-06-30T15:34:46.015Z","url":"https://community.spiceworks.com/t/problems-with-winrm/1218747/2","author":{"@type":"Person","name":"priBizcus","url":"https://community.spiceworks.com/u/priBizcus"}},{"@type":"Answer","text":"
The issue likely isn’t just GPO-related but may involve Kerberos, DNS, or SPN problems. First, test Test-WSMan using both hostname and IP to rule out DNS issues. Recreate the WinRM listener using winrm quickconfig -force, and ensure WinRM firewall rules are enabled on all profiles. Use gpresult /h report.html to verify actual GPO application, and check for SPN conflicts with setspn -L . Also, review network bindings or virtual adapters that may affect communication.<\/p>","upvoteCount":1,"datePublished":"2025-07-01T05:20:43.727Z","url":"https://community.spiceworks.com/t/problems-with-winrm/1218747/3","author":{"@type":"Person","name":"afroz-stellar","url":"https://community.spiceworks.com/u/afroz-stellar"}}]}}