Backup NTFS Permissions
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
About this post
Posted: 2022-08-25
By: dwirch
Viewed: 197 times
Categories
Tip
Scripting
Powershell
PowerShell Code Cache
Attachments
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.