Home / Port numbers / Port 5985
Port 5985: WinRM (HTTP)
Windows remote management and PowerShell remoting. Port 5985 uses TCP.
- Port
- 5985
- Commonly used for
- WinRM (HTTP)
- Transport
- TCP
- Encrypted
- Message-level, when used in a domain
- Range
- User (registered) port, 1024 to 49151
- Our advice
- Keep it closed to the internet
- IANA registration
wsmanWBEM WS-Management HTTP (TCP, UDP)
Registration: IANA Service Name and Transport Protocol Port Number Registry, retrieved 15 November 2026. The registered name can differ from the everyday use, because popular software often adopts a port without registering it. The description and advice are written by Home Net Guide and describe common practice: any program can be set to use any port.
What port 5985 is used for
Port 5985 is Windows Remote Management over HTTP, the transport for PowerShell remoting. Administrators and automation tools use it to run commands on Windows servers. It is enabled by default on Windows Server.
Should port 5985 be open?
It grants a remote command line to anyone with valid credentials, and attackers who have stolen a password use it to move between machines. It should be reachable only from administrators' computers, never from the internet.
Related ports
- Port 5986 (WinRM (HTTPS)): Windows remote management over an encrypted connection
- Port 3389 (RDP): Windows Remote Desktop
- Port 22 (SSH): secure remote login and file transfer (SFTP)
- Port 135 (Microsoft RPC endpoint mapper): directs Windows remote management calls to the right port
See all port numbers for the full list and how ports, TCP and UDP work.
Previous: Port 5984 (CouchDB) · Next: Port 5986 (WinRM (HTTPS))