icacls restore-cannot find the file specified
Hi,
Thank you for the post.
B:\Units\Test3\Test3: The system cannot find the file specified.
The error means no folder "B:\Units\Test3\Test3" and it's true.
So you need specify "B:\Units" as the target folder, it will find the folder "B:\Units\Test3".
Here is Wiki article to explain this condition.
http://social.technet.microsoft.com/wiki/contents/articles/408.how-to-back-up-and-restore-ntfs-and-share-permissions.aspx
If there are more inquiries on this issue, please feel free to let us know.
RegardsRick Tan
TechNet Community Support
September 1st, 2012 5:21am
Thank you. Looking closer at the very code I posted, I see that now, trying to do too many things at once yesterday and overlooked that. "B:\Units\Test3\Test3" clearly doesn't exist. With the advice provided, I was able to get it to
work.
Thank you.
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
G:\>icacls B:\Units\ /restore B:\Units\Test3TestingACL.txt
processed file: B:\Units\Test3
Successfully processed 1 files; Failed processing 0 files
G:\>
Free Windows Admin Tool Kit Click here and download it now
September 1st, 2012 8:46am
As a test, I did a simple test save of icacls settings (logged in as Domain Admin) and CMD is being run as Administrator. I then did a restore and it says it can't find the file specified. Is there a syntax issue with the /restore command or
is there a permissions issue based on where the .txt file was stored? This drive (B:) is an iSCSI connected SAN.
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
G:\>icacls B:\Units\Test3 /save B:\Units\Test3Icacls-2.txt
processed file: B:\Units\Test3
Successfully processed 1 files; Failed processing 0 files
G:\>icacls B:\Units\Test3 /restore B:\Units\Test3Icacls-2.txt
B:\Units\Test3\Test3: The system cannot find the file specified.
Successfully processed 0 files; Failed processing 1 files
Here is the are the contents of B:\Units\Test3Icacls-2.txt (it does reside at the path shown)
Test3
D:PAI(D;;0x110000;;;S-1-5-21-2670568672-578679464-3423941738-2633)(A;OICI;FA;;;S-1-5-21-2670568672-578679464-3423941738-500)(A;OICI;FA;;;BA)(A;;FA;;;BA)(A;OICI;FA;;;SY)(A;OICIIO;FA;;;BA)
September 1st, 2012 9:49am