Quantcast
Viewing all articles
Browse latest Browse all 36188

PowerTip: Use PowerShell to Find Non-Inherited Access to a Folder

Summary: Learn how to use Windows PowerShell to find non-inherited access rights to a folder.

Image may be NSFW.
Clik here to view.
Hey, Scripting Guy! Question
 How can I find non-inherited access rights to a folder by using Windows PowerShell?

Image may be NSFW.
Clik here to view.
Hey, Scripting Guy! Answer
 Use the Get-Item cmdlet to select the folder, and pipe it to the Get-ACL cmdlet. Choose the Access property, and filter the results based on an inheritance flag equal to none. This technique is shown here for the C:\fso folder (? Is an alias for the Where-Object).

(Get-Item c:\fso | get-acl).Access | ? inheritanceflags -eq 'none'

 Image may be NSFW.
Clik here to view.

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 36188

Trending Articles