Certified Ethical Hacker CEH · Free Practice Question Easy

Question 60

Which of the following commands will display all current shares on the Windows machine?
  • A net view
  • B net share
  • C net config
  • D net use
Reveal correct answer

Correct answer: B

Explanation

Correct Answer:

Net use is correct.

The net command is used to view and configure network settings on a Windows machine. Net commands can add or remove users and computers, manage network shares and print jobs, as well as perform a host of other functions. Entering “net share” without any switches or arguments displays all shares from the machine. 

Incorrect Answers:

Net use, net view, and net config are incorrect.

These answers do not match the syntax provided.

The “net use” command connects a computer to or disconnects a computer from a shared resource (it can also show the shared drives the current user has mapped to).

The “net view” command is used to show a list of computers and network devices on the network.

The “net config” command displays the configurable services that are running, or it displays and changes settings for a Server service or a Workstation service.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need