Command to list Windows directory permissions

Command to list Windows directory permissions

Sometime we have requirement to get a list of users and groups who have access to particular file or folder and we cannot copy paste the GUI list of security tab. Here we need a command to get the list and we can copy it through command prompt

Here is the command examples to do the job:

D:\>icacls \\servername\folder
\\Servername\public BUILTIN\Administrators:(OI)(CI)(F)
CREATOR OWNER:(OI)(CI)(IO)(F)
NT AUTHORITY\SYSTEM:(OI)(CI)(F)
NT AUTHORITY\INTERACTIVE:(OI)(CI)(IO)(M,DC)
NT AUTHORITY\INTERACTIVE:(RX,WD,AD)
NT AUTHORITY\SERVICE:(OI)(CI)(IO)(M,DC)
NT AUTHORITY\SERVICE:(RX,WD,AD)
NT AUTHORITY\BATCH:(OI)(CI)(IO)(M,DC)
NT AUTHORITY\BATCH:(RX,WD,AD)
Everyone:(OI)(CI)(RX)

Successfully processed 1 files; Failed processing 0 files

OR

D:\>icacls C:\folder
\\Servername\public BUILTIN\Administrators:(OI)(CI)(F)
CREATOR OWNER:(OI)(CI)(IO)(F)
NT AUTHORITY\SYSTEM:(OI)(CI)(F)
NT AUTHORITY\INTERACTIVE:(OI)(CI)(IO)(M,DC)
NT AUTHORITY\INTERACTIVE:(RX,WD,AD)
NT AUTHORITY\SERVICE:(OI)(CI)(IO)(M,DC)
NT AUTHORITY\SERVICE:(RX,WD,AD)
NT AUTHORITY\BATCH:(OI)(CI)(IO)(M,DC)
NT AUTHORITY\BATCH:(RX,WD,AD)
Everyone:(OI)(CI)(RX)

Successfully processed 1 files; Failed processing 0 file

VN:F [1.9.22_1171]
Please Rate & Comment !
Rating: 5.0/5 (3 votes cast)
Command to list Windows directory permissions, 5.0 out of 5 based on 3 ratings
Share