I've modified a batch script I found to set user permissions. The script creates a folder, then assigns permissions as full control to the "domain admins", "Administrators", and the "username", only it still assigns permissions to others also, for example "Everyone". Can someone please tell me why? I need to secure the folder for use only by the domain admins, administrators and "single" user.
Here's the code:
echo y| calcs "\\server\data\reports\username /G" "Domain Admins":F "Administrators":F username:F
I've tried it several different ways but nothing works. It always creates a folder with full access for everybody in the company.