I wrote the following lin in a .bat file:
pause
Icacls %1:\Help /deny *S-1-1-0:(OI)(CI)(WEA,D,WO,WD,WA,AD,DC,WDAC)
pause
EXIT
The Problem is that I can't acces the Help folder on the USB drive, it doesn't give me permission.
The odd thing is that when I go to the settings manually and put the settings exactly as Icacls does, it works as it should.
When I look in properties at the rights they seem exactly the same as if I put them manually..
I don't see the difference between the Icacls result and the manual result, but it's there since windows behaves different on the same settings (for my eye).
any idea what I am doing wrong?
I am trying to achieve that the Help folder is accesable and executable but not deletable nor the files in it. And nor that people can write in it. So make it read and execute only. The rest of the drive should be free for whatever purposes