Last Updated: February 25, 2016
·
472
· mbarinc

backup and restore Windows DACLs

To backup:

icacls “D:\test-directory” /save “C:\temp\ntfs-backup.txt” /t /c

To restore previous backup:

icacls D:/ /restore C:\temp\ntfs-backup.txt

The command also works for the network path.