I tried to use cacls to give "Everyone" group access to certain folder. And I failed. As I understand the reason is i'm trying to use groupname in english while my windows is localized. Attempt to use localized groupname succeded. I can't predict language of target system. How can I grant permissions on folder regardless of Windows localization?

link|improve this question
What version of Windows? – Harry Johnston Feb 3 at 3:17
i want to use cacls in bat-file on wide range of systems. From Win2K to Win7. That's why i can't ise icacls. – Aleksandr Kravets Feb 3 at 8:59
Is it OK to replace the existing permissions on the folder? – Harry Johnston Feb 4 at 4:40
@HarryJohnston: Yes, I think. – Aleksandr Kravets Feb 4 at 15:25
The /s option to cacls will do what you want, but I'm not sure which version of the OS introduced it. If cacls /s didn't exist in Windows 2000, then I think you're stuck - you'll probably have to ship an executable along with the batch file. – Harry Johnston Feb 4 at 21:44
show 2 more comments
feedback

1 Answer

up vote 0 down vote accepted

Best i could do is use version number checking, if winVersion >= 6 then use icacls else use xcacls.vbs which i ship with my script. Though xcacls is extremly slow, it works for me for now. In future - we'll see.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.