Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 1.0 » Get-Acl

Get-Acl - Powershell 1.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Get-Acl

Description
Get permission settings for a file or registry key

Usage


Options


Example(s)
Get ACL information for the Windows directory:

PS C:\>get-acl C:\windows

Get ACL information for C:\Windows expanding the individual ACEs (access control entries)

PS C:\>$mywin = get-acl -path "c:\windows" | select -expand access
PS C:\>$mywin[0] 

Get ACL information for all of the .log files in the Windows directory beginning with k. 
Display output as a table showing the Path and the owner of each file:

PS C:\>get-acl C:\Windows\k*.log | format-table Path,owner

Retrieve HKLM\SYSTEM\CurrentControlSet\Control from the registry:

PS C:\>get-acl -path hklm:\system\currentcontrolset\control | format-list