So keeping with my example above...
What would my command be
cacls \\root\JobFiles\JobNumber1
How do I set it to inherit?
Can I also add a group vice a user?
Main Topics
Browse All TopicsHello.
Currently I am in a W2K3 Enviroment.
On one of our shared drives we have a list of Jobs, each which have a folder called COST. I need to reset permissions on that COST folder, but can't push it down via inheritance. Is there any way by a gui tool or script I can make those changes.
An Example of the structure is:
\\root\JobFiles\JobNumber1
Therefor I would like to script something that rests the permissions for these folders
\\root\JobFiles\JobNumber1
\\root\JobFiles\JobNumber2
\\root\JobFiles\JobNumber3
and so forth.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Well, this would be a lot easier to answer if you'd say which permissions those Cost folders should have ...
The example below would add *C*hange permissions to all Cost subfolders, leaving the current permissions intact.
Simply enter the following command in a command line.
You can do that safely, it's in test mode and will only echo the cacls commands it would otherwise run:
for /d %a in ("\\root\JobFiles\*.*") do @ECHO cacls.exe "%a\Cost" /t /e /g:YOURDOMAIN\SomeGroup:C
To run it for real, you'd need to leave out the @ECHO.
Agreeing with oBdA - it'd be a lot easier if you could say what you want the permissions on the folders to look like after the script has run.
I use xcacls.vbs from VBScript on my fileserver - I use it to go through and change permissions of subfolders en masse. You can download XCACLS.VBS from here:
http://www.microsoft.
You
cscript \\path\to\xcacls.vbs /?
NB: Copy and paste this code into a blank notepad document, and save it with the extension ".vbs" for it to work.
Business Accounts
Answer for Membership
by: hypercatPosted on 2009-07-06 at 13:27:07ID: 24788900
You could use the cacls.exe command line tool and then script the changes that you need to make. You can get the applicable switches for the command by running cacls /? at the command line, if you're not familiar with it. You'd still have to identify each folder individually in the script, but at least you could cut and paste the folder paths.
There's also an enhanced tool for Win2K3 SP2, which I've never used:
http://support.micros oft.com/kb /919240