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 email@example.com.