OpenAI | Server+ Exam SK0-004: Determining Ports and Services on Windows Server

Determining Ports and Services on Windows Server

Prev Question Next Question

Question

An administrator would like to determine what port and services are running locally on a server.

Which of the following Windows command lines and shell tools should the administrator use? (Select THREE).

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E. F.

ACD.

The administrator should use the following three Windows command lines and shell tools to determine what port and services are running locally on a server:

  1. netstat: This command displays active network connections, including the protocol, local address, foreign address, and state. It can also show what ports are open on the server and what services are currently running. By default, netstat displays active TCP connections, but the -a flag can be used to show both TCP and UDP connections. The -b flag can be used to show which executable is using the specified port.

  2. sc query: This command displays information about Windows services installed on the server, including the name, display name, status, process ID, and service type. The command can be used with the -state flag to display only services that are currently running.

  3. get-services: This command retrieves information about Windows services installed on the server. It displays the status, name, display name, and service type of each service. It can be used with the -computername flag to retrieve information from a remote computer.

The following Windows command lines and shell tools are not relevant to determining what port and services are running locally on a server:

  1. show ports and show services: These commands do not exist in Windows command line or shell tools.

  2. vmstat: This command is used to monitor virtual memory statistics on a Unix or Linux system, not Windows.