Scripting - How to view shared folder permissions

There is an easily way to view remote shared folder permissions.

Here it is command line syntax:

Icacls \\servername\sharename

More details:

https://technet.microsoft.com/en-us/library/2009.07.geekofalltrades.aspx

https://technet.microsoft.com/en-us/library/cc753525(v=ws.11).aspx