Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Find If Folder Inherits from Parent

$
0
0

Summary: Use Windows PowerShell to determine if an NTFS folder inherits from its parent folder.

Hey, Scripting Guy! Question How can I use Windows PowerShell to determine if an NTFS folder inherits from its parent folder?

Hey, Scripting Guy! Answer Use the Get-NTFSAccessInheritance cmdlet provided by the NTFSSecurity module, for example:

Get-NTFSAccessInheritance -Path C:\Windows

Or if you want to query multiple folders:

dir -Recurse | Get-NTFSAccessInheritance | Where-Object { -not $_.InheritanceEnabled }


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>