We are using xcacls.vbs to modify NTFS permissions (support.microsoft.com/kb/825751) .
syntax:
xcacls.vbs C:\TestFolder /G DOMAIN\USER: RW /E
RW -Read and Write
F -Full access
How to give only Read,Write,Modify,Read & Execute permissions ??
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s in the document that accompagnes xcacls.vbs, i’ll paste it here but you need the following
Here the syntax
Examples
The following Xcacls.vbs commands provide some examples of Xcacls.vbs usage.
This command edits existing permissions. It grants Domain\TestUser1 full control
on all files under C:\Test, it traverses subfolders under C:\Test, and then it
changes any files that are found. This command does not touch directories.
This command replaces existing permissions. It grants Domain\TestUser1 full
control on all subfolders under C:\Test, and it logs to C:\Xcacls.log. This
command does not touch files, and it does not traverse directories.
This command changes the owner of Readme.txt to be the group MachineA\Group1.
This command revokes the permissions to C:\Test\Badcode.exe for MachineA\Group1
and for Domain\TestUser1.
This command turns on inheritance on the folder C:\Test\Subdir1. It suppresses
any screen output.
This command remotely connects to \ServerA\ShareZ by using Windows Management
Instrumentation (WMI). It then obtains the local path for that share, and under
that path, it changes the permissions on Testpage.htm. It leaves the existing
permissions of Domain\Group2 intact, but it adds permissions 1 (read data) and
4 (read extended attributes). The command drops other permissions on the file
because the /e switch was not used.
This command uses WMI to remotely connect as ServerA\Admin to ServerA and then
grants full permissions on Default.htm to Domain\Group2. Existing permissions
for Domain\Group2 are lost and other permissions on the file remain.back to
the top