You can use the following syntax in Command Prompt (CMD) to get the permission access details of a folder:
icacls folder_path
This example will display the access control lists (ACLs) for the specified folder, showing the permissions for each user and group.
Note: Ensure that the path you provide exists, otherwise you will receive an error.
The following example shows how to use this syntax in practice.
Example: Getting Folder Permission Access in CMD
Suppose that we want to get the permission access details of the following folder:
C:\Users\admin\Documents\cmd_script
We can type the following command to get the permission access details of the folder:
icacls C:\Users\admin\Documents\cmd_script
The following screenshot shows how to use this syntax in practice:
We can see the access control lists (ACLs) for C:\Users\admin\Documents\cmd_script, displaying the permissions for each user and group.
Conclusion
We can use the icacls command followed by the path to get the permission access details of any folder on the system.
You can find more topics about Active Directory tools and PowerShell basics on the ActiveDirectoryTools home page.