Click here to Skip to main content
15,919,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In a custom action of the setup, a VB Script is run to perform several actions. i also want to set permissions on file "abc.def" such that only "Local System" (S-1-5-18) can access it. I tried to find out how to do that with cacls:
cacls abc.def /G SID#S-1-5-18:F

But that command results in the error message "No mapping between account names and security IDs was done" when I try it from a commandline in the folder of that file (administrative user, elevated rights).
How can that be achieved (please note: must work on XP and Win7 and corresponding server OS)?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900