1

I saved an ACL using icacls using this command

icacls File.zip /save aclsFile

That worked fine, but whenever I try to restore the file I get an error message:

icacls * /restore aclsFile
Not all privileges or groups referenced are assigned to the caller. 

Has anyone else encountered this problem or know how to fix it?

sysadmin1138
  • 133,124
  • 18
  • 176
  • 300
RedPheonix
  • 35
  • 2
  • 6

1 Answers1

2

Is UAC enabled on your system? You need to run your command prompt as administrator in order for icacls restore to work.

Also - I'm pretty sure the format of your restore command is incorrect. A * will cause icacls to error out because it will look for *\File.zip - what you probably want is:

icacls . /restore aclsFile
MattB
  • 11,194
  • 1
  • 30
  • 36