2

I've a quest to change the owner on about 800 folders. The owner should be equal to the folder name. I've tried something like this:

set /p userDir=username
ICACLS "D:\test\%userDir%" /setowner "domain\%userDir%" /T

But I get the error message

"ICACLS: Comparison between user names and security IDs was not made"

If I change %userDir% to an actual folder name it will work. Could you please tell what is wrong?

user9517
  • 117,122

0 Answers0