Using the PortQry command-line tool - Windows Server | Microsoft Learn
Because port scanning is a primary technique used by hackers to find vulnerabilities (such as "open doors" into a network), security software often flags these executables.
: It is used by network administrators to identify open TCP/UDP ports, find all network devices (including Wi-Fi routers and computers), and obtain information about those devices.