The "Carbon.Security" module has a function get an ACLs that works across PowerShell editions.
- Windows PowerShell 5.1 and .NET 4.6.1+
- PowerShell 7+
To install globally:
Install-Module -Name 'Carbon.Security'
Import-Module -Name 'Carbon.Security'
To install privately:
Save-Module -Name 'Carbon.Security' -Path '.'
Import-Module -Name '.\Carbon.Security'
Get-CAcl
: Gets the access control (i.e. security descriptor) for a file, directory, or registry key.