Tools to Give Apply NTFS permissions

Hi, I haved used Xcacls.vbs to apply NTFS permission on Cluster but somehow it screwed my Cluster and all the permission are lost.

I am looking for resource kit tool where in i can use that and give NTFS rights to 3000 users on their home directories and common directories.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steve KnightIT ConsultancyCommented:
Standard cacls.exe will do it and subinacl.exe to take ownership for the user.  Something like this:

call setrights.cmd with a paramater which is the username.  You could write a loop to go down all directories and call this if your directory structure allows:

@echo off
REM Set Rights Script
REM Steve Knight

Set user=%1

if "%1"=="" goto error

echo Setup user, profile, and data directories with permissions for %user%
title Setup user data profile directories for %USER% %2

if exist \\server\users\%user% goto skip1
  echo Creating users directory
  md \\server\users\%user%

echo This may take some while.  Please Wait...

echo Setting USERS directory permissions
echo Y|cacls \\server\users\%user% /e /t /g  domain\%user%:C > nul

echo Taking ownership of USERS area
subinacl /noverbose /subdirectories \\server\users\%user%\*.* /setowner=domain\%user%
subinacl /noverbose /file \\server\users\%user% /setowner=domain\%user%

goto end


echo SETRIGHTS.  Steve Knight. Jan 2002.
echo Usage setrights username
echo You typed: %0 %1 %2 %3
echo This sets permissions and ownership for domain user
echo Requires SUBINACL from Resource Kit


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Steve KnightIT ConsultancyCommented:
Fine by me.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 2000

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.