Setting Folder Permissions using XCACLS

Does anyone know if you can specify a particular domain controller to use when using XCACLS? I am attempting to add permissions on a new folder on a remote file server.  I created a new Active Directory group for the folder, but the new group has not replicated to the remote site so I can't add the permissions.

Does anyone know if you can specify a domain controller with XCACLS or perhaps with another command?

Thanks
LVL 1
Matthew RoessnerSenior Systems ProgrammerAsked:
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.

Joseph MoodyBlogger and wearer of all hats.Commented:
Why not set the permission using file system security in group policy? By using group policy to configure the NFTS permissions, you are assured that the permission are always set exactly the way you want.
0
Matthew RoessnerSenior Systems ProgrammerAuthor Commented:
We create new folders for different groups and/or different departments and then create AD groups that correspond to those folders so only the people in the groups have access to the folders.   We are in the process of developing a utility that allows our helpdesk the ability to create these folders and AD groups.  

Based on that...I don't know that group policy would really work for what we are doing
0
Joseph MoodyBlogger and wearer of all hats.Commented:
You could use group policy preference to create the folders on the server/workstation and set the permissions in the same policy.

If you do not want to do that, you would have to make sure that the tech's logon server (the server that authenicates them) is the one that you want to run xcacls against.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Matthew RoessnerSenior Systems ProgrammerAuthor Commented:
We aren't going to want to allow our helpdesk the ability to work with group policy.

The process that we are building would run as a user who had access to the XCACLS command and the ability to make the necessary changes in AD.
0
Joseph MoodyBlogger and wearer of all hats.Commented:
I wouldn't either (unless you were using Advance group policy).
0
Kevin HaysIT AnalystCommented:
I started moving away from xcacls and started using fileacl to set permissions especially in batch scripts.  I always use the same folders and permissions when setting up new DC's and file servers for profiles, redirected folders and such.

Link:
http://www.gbordier.com/gbtools/fileacl.asp

If I remember correctly I used to use xcals and I would always specifiy the servername in the path.

Kevin
0
Matthew RoessnerSenior Systems ProgrammerAuthor Commented:
I ended up using remote commands and running XCACLS remotely view remote commands.
0

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
Matthew RoessnerSenior Systems ProgrammerAuthor Commented:
I ended up using remote commands and running XCACLS remotely view remote commands.
0
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
Active Directory

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.