Export Folder and Sub folder permissions to CSV

Here is a quick powershell one liner commands to export the NTFS permissions for a root folders or with Sub folders.

To export for a single Folder.

 

Export command for a folder tree

 

 

 

2 thoughts on “Export Folder and Sub folder permissions to CSV

  1. Renjith Post author

    Run the below in your shell to create the folders from a csv and run the above script to replicate the NTFS permissions.

    Set-Location “D:\Sharedfolder”
    $Folders = Import-Csv C:\users.csv
    ForEach ($Folder in $Folders) {
    New-Item $Folder.Name -type directory
    }

    Reply

Leave a Reply

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