My goal is to create a user folder, and then assign only the domain admins and the user the ability to open the folder (write, read, edit, etc.).
So far I have:
echo y| Xcacls.vbs \\servername\subfolder\reports\TOMJONES /I REMOVE
echo y| cacls \\servername\subfolder\reports\TOMJONES /E /G "Domain Admins":F "Administrators":F TOMJONES:F
The folder is created, but the permissions are not being set. Please help! Thanks