To view NTFS permissions for folders or files, use Get-Acl. It won't show you the actual permissions at first, but you can make them visible like this:
Get-Acl -Path $env:windir | Select-Object -ExpandProperty Access
To view NTFS permissions for folders or files, use Get-Acl. It won't show you the actual permissions at first, but you can make them visible like this:
Get-Acl -Path $env:windir | Select-Object -ExpandProperty Access