I am doing some testing with Windows Server 2008 R2 with NTFS permissions. I have a d: (multiple folders and sub-folders) drive with an existing ntfs permissions. I want to make a backup of the settings using icacls so I can restore when needed.
So, here is what I am doing and the issue:
1. Open an elevated cmd prompt.
2. Run "icacls d:\ /save ntfsDdrive.txt /t /c" without the quotes. No issues.
3. Run "icacls d:\ /restore ntfsDdrive.txt" without the quotes and I get the following:
d:\D:PAI(A;OICI;FA;;;SY)(A;OICI;FA;;;BA)(A;OICI;0x1200a9;;;S-1-5-21-1229272821-2
025429265-725345543-3701)(A;CI;0x1200a9;;;BU)S:AI: The filename, directory name,
or volume label syntax is incorrect.
Successfully processed 0 files; Failed processing 1 files
Any assistance is appreciated.