Solved

Assigning AD Domain Local Groups from the Command Line

Posted on 2004-09-28
3
472 Views
Last Modified: 2008-01-09
I am attempting to create shares and assign permissions from the command line.(actually from a batch file)  When we used machine local groups I was able to use net share  and  cacls with no problems.  The syntax was as follows:

cacls e:\shares\FolderName /T /E /G ServerName\MachineLocalRWGroup:C  ServerName\MachineLocalROGroup:R ServerName\administrators:F

net share Sharename=e:\shares\FolderName /grant:Administrators,full /grant:MachineLocalRWGroup,change /grant:MachineLocalROGroup,read

We've since moved to using AD Domain Local Groups and I can't seem to get the syntax right (or it can't be done using net share and calcs)   Can someone out there please point me in the right direction?  

Regards

Brian


0
Comment
Question by:bg00
3 Comments
 
LVL 4

Accepted Solution

by:
Milind00 earned 350 total points
ID: 12178000
cacls works for domain groups but only in case of current domain. It does not allow us to specifiy domain. So in case name conflict with domain group and local group, it will not work.

Try using XACLS.
http://support.microsoft.com/?id=825751
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now