Link to home
Start Free TrialLog in
Avatar of Elmo_Oxygen
Elmo_Oxygen

asked on

Using XCACLS to modify recurring subfolder

I have a folder structure as follows:

\users\user1
            \user2
            \user3
            \user4

Every single user folder contains a subfolder named '\scanned-docs'.

I would much appreciate some direction in creating a script that ADDS a specific domain account to have write access for each 'scanned-docs' folder.  That's it.

Many thanks in advance.
Avatar of bklyn2001
bklyn2001

I'm assuming xcacls works just like cacls:

cd \users
for /d %i in (*) do xcacls %i /t /e /g username:w

Open in new window

just realized the post said vbscript, but doing this in a windows shell script is so much easier.
Avatar of Elmo_Oxygen

ASKER

Won't this modify ACL in all of the subfolders?

Ideally am looking for an easy way to change only one subfolder named 'scanned-docs' that's present in each user's folder.

Thx.

ASKER CERTIFIED SOLUTION
Avatar of bklyn2001
bklyn2001

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Outstanding, thanks.