Hello Iris Smith,
This behavior is expected in some scenarios because enabling remote management does not automatically guarantee that a WinRM listener has been created. Microsoft documentation states that WinRM can be installed and running, yet have no configured listener by default, which means the computer cannot receive WS-Management requests until a listener is explicitly configured.
Verify the current configuration with winrm enumerate winrm/config/listener. If no listener is returned, configure WinRM using winrm quickconfig or PowerShell Set-WSManQuickConfig, which starts the WinRM service, sets it to Automatic startup, creates a listener on the appropriate port (HTTP 5985 by default), and configures the required Windows Firewall exceptions.
A common cause is that WinRM service configuration, Group Policy settings, or remote management features were enabled, but the listener was never created, removed, or not deployed through policy. In short, a running WinRM service alone is not sufficient; a valid listener must exist before remote management over WinRM can function correctly.
If my answer is useful for you, please hit Accept the answer for me please.
HL.