Easy way to list ACL information on a File or Registry Keys

by [Published on 22 May 2014 / Last Updated on 22 May 2014]

Tip explains how to get ACLs (permissions) assigned on a file or registry key.

PowerShell offers great commands and helps in save a lot of time in performing daily routine tasks. One of them is to list permissions on a file/folder or a registry key.

To list permissions assigned on a folder:

  • Get-ACL C:\Temp

To list permissions on a file and format the output with specified attributes:

  • Get-Acl C:\Temp\Test.log | Format-List -Property PSPath, Sddl

To get permissions on a registry key:

  • Get-Acl -Path HKLM:\System\CurrentControlSet\Control | Format-List

About Nirmal Sharma

Nirmal is a MCSEx3, MCITP and was awarded Microsoft MVP award in Directory Services. He is specialized in Directory Services, Microsoft Clustering, Hyper-V, SQL and Exchange and has been involved in Microsoft Technologies since 1994. In his spare time, he offers technical help by writing tips and articles. Nirmal can be reached at nirmal_sharma@mvps.org.

See Also

The Author — Nirmal Sharma

Nirmal Sharma avatar

Nirmal Sharma is a MCSEx3, MCITP, and was awarded Microsoft MVP in Directory Services. In his spare time, he likes to help others and share some of his knowledge by writing tips and articles for various online communities. Nirmal can also be found contributing to PowerShell based Dynamic Packs for ADHealthProf.ITDynamicPacks.Net solutions.

Featured Links