portqry -n webserver01 -e 80 -p tcp
This checks TCP/1433 (default instance) and UDP/1434 (SQL Browser). Portqry will decode the SQL Browser response, showing instance names and ports. portqry