raandree / NTFSSecurity

Managing permissions with PowerShell is only a bit easier than in VBS or the command line as there are no cmdlets for most day-to-day tasks like getting a permission report or adding permission to an item. PowerShell only offers Get-Acl and Set-Acl but everything in between getting and setting the ACL is missing. This module closes the gap.
MIT License
431 stars 61 forks source link

Get-childitem2 - hidden attribute and recursion #2

Open raandree opened 8 years ago

raandree commented 8 years ago

This issue was imported from CodePlex

duboiso wrote 2016-03-29 at 12:17 Hello,

First time I post here so sorry if I break any rules.

I think Get-childitem2 doesn't handle hidden files and recursion properly.

Non-hidden items contained in hidden folders are not returned.

Please refer to the attached screenshot.

MichaelZoellner wrote 2016-09-12 at 16:34 I think that your example is not a bug but 'it works as designed'. In your last call of Get-ChildItem2 you specify that you only want to get hidden objects. The file test.txt is not hidden so you don't get it listed.

The problem with NTFSSecurity is that multiple attributes are not correctly evaluated (Id #1965). So I think there is no chance to get what you need.

Many Greetings

Michael