CMD: Find shares and users in them

How to find shares and users in them, using command prompt
CMD: Find shares and users in them

Once in a while, one needs to find what is shared and who have access. Luckily this is fairly straight forward using CMD in Windows

net share

In Windows, open up CMD and run net share

Share name Resource Remark

------------------------------------------------------------------------------- ADMIN$ C:\Windows Remote Admin C$ C:\ Default share D$ D:\ Default share E$ E:\ Default share H$ H:\ Default share In H:\Application\input\subfolder\In input H:\Application\input output H:\Application\output

This will list all folders being shared and their path, called resource

net share [sharename]

To find user's belonging to this share, CMD needs to be run as admin. Then you can run net share [sharename], replace [sharename] with actual share name

Share name input Path H:\Application\input Remark Maximum users No limit Users SN06324 YF125324 SP63532 gr129346 EY74786 JH129235 SB123576 OY99765 Caching Manual caching of documents Permission BUILTIN\Administrators, FULL Everyone, FULL

The command completed successfully.

This will list users usernames, plus some more information of the share

We sometimes publish affiliate links and these always needs to follow our editorial policy, for more information check out our affiliate link policy

You might also like

Waking up during the night to pee could mean you're peeing wrong
Health

Waking up during the night to pee could mean you're peeing wrong

Powder vs Liquid vs Capsul Detergent
Cleaning

Powder vs Liquid vs Capsul Detergent

Arme riddere (Norwegian Cinnamon Toast)
Breakfast

Arme riddere (Norwegian Cinnamon Toast)

Comments

Sign up or Login to post a comment

There are no comments, be the first to comment.