Icacls Help

Good Afternoon,

I am new to using icacls and i am trying to remove the "Everyone" group from one of our network directories and to replace it with "Domain Users." I would like to keep the other permissions "as is." Is there a way i can do this using icacls or by running a script? I would be doing this on Windows Server 2008 R2 x64 and on Windows Server 2012 R2 x64 servers.

Thank you for your help
transystemsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

NVITEnd-user supportCommented:
FYI... prior to your step, you may have to first disable inheritance. e.g. This example * disables inheritance and copies the existing ACEs:
icacls C:\local\Tutorial\Shared /inheritance:d

Open in new window


Now, remove Everyone, including sub-folders.
icacls C:\local\Tutorial\Shared /remove:g "Everyone" /t

Open in new window


Grant Domain Users read-only:
icacls C:\local\Tutorial\Shared /grant:r "Domain Users":(OI)(CI)R

Open in new window

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
transystemsAuthor Commented:
Thank you, once the "Everyone" group is removed from the directory, would i just put in the command to grant access for "Domain Users" to have the same permissions that the "everyone" group had? Thank you
NVITEnd-user supportCommented:
Yes
transystemsAuthor Commented:
Thank you!
NVITEnd-user supportCommented:
You're welcome, transystems. Have a great day!
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
Microsoft Server OS

From novice to tech pro — start learning today.