Backup NTFS Permissions

By | 2022-08-25

Use the following PowerShell script to backup NTFS permissions.

Permissions Only one folder (no subfolders):

Get-Childitem -path \\server\path\folder | Where-Object {$_.PSIsContainer} | Get-ACL | Select-Object Path -ExpandProperty Access | Export-CSV c:\tmp\ntfs.csv

Permissions With subfolders (-recurse):

Get-Childitem -path \\server\path\folder -recurse | Where-Object {$_.PSIsContainer} | Get-ACL| Select-Object Path -ExpandProperty Access | Export-CSV c:\tmp\ntfs_subfolders.csv

Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.