Thursday, September 20, 2007

SCRIPT: Reset Permissions on a Folder

First you will need to download xcacls.exe from Microsoft.

Then you will to run this command:

xcacls "D:\DATA" /t /g "CREATOR OWNER":F "SYSTEM":F "Domain Admins":F "Domain Users":C

This example will reset all permissions on the D:\DATA folder and assign Full Permissions(F) to CREATOR OWNER, SYSTEM and Domain Admins and Change Permissions(C) to Domain Users.

No comments: