How do I do a net share command from a server to list all shares and ACL on a server?

Something got corrupt on a server and now we have to restore from a backup. However, because there are shares on this server, I have to make the comparison from the current state and the restored server. How do I run a command that will give me what shares are on this server and ACL?
5itfaceAsked:
Who is Participating?
 
Emmanuel AdebayoConnect With a Mentor Global Windows Infrastructure Engineer - ConsultantCommented:
You can use net share and icacls command

At the command prompt on the server enter net share
After you get the list of shares, you can now use icacls for each share to list the permission.

Let me know if you need more assistance.

Regards
0
All Courses

From novice to tech pro — start learning today.