Windows Remote Management / PowerShell Remoting over HTTP (message-level encrypted with Kerberos or NTLM). Ansible uses it for Windows hosts.
Windows Remote Management / PowerShell Remoting over HTTP (message-level encrypted with Kerberos or NTLM). Ansible uses it for Windows hosts.
Do not expose to the internet. Never expose: it gives remote command execution to anyone with valid credentials and is a favourite lateral-movement path. Limit to management hosts.
Registry dates for this port: registered 2006-11.
sudo ss -tlnp 'sport = :5985'sudo lsof -nP -i :5985sudo netstat -tlnp | grep ':5985 'netstat -ano | findstr :5985Get-NetTCPConnection -LocalPort 5985 -State Listen | Select LocalAddress,OwningProcessnc -vz -w 5 HOST 5985Test-NetConnection HOST -Port 5985sudo ufw deny 5985/tcpsudo iptables -A INPUT -p tcp --dport 5985 -j DROPsudo nft add rule inet filter input tcp dport 5985 dropNew-NetFirewallRule -DisplayName 'Block TCP 5985' -Direction Inbound -Protocol TCP -LocalPort 5985 -Action BlockAll port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.