|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Set et "inherit from parent the permission" on multiple user objects at same timeAll,
I need to set the "inherit from parent the permission entries that apply to child objects" on multiple user objects in a container. Is there a way to do this on many users at the same time? Thanks, Ryan If you have the Windows 2003 support tools loaded, take a look at the
Directory Services ACL Editor - ddcaslc.exe. I haven't had to use it before, but It might help you. Show quoteHide quote "musicman" wrote: > All, > I need to set the "inherit from parent the permission entries that > apply to child objects" on multiple user objects in a container. > Is there a way to do this on many users at the same time? > Thanks, > Ryan > > Thought I'd post the resolution for this since it took forever to
figure out - as I am not a great scripter. credit for the dsacls syntax goes to this post: http://groups.google.com/group/microsoft.public.win2000.security/browse_frm/thread/4485344845d13d59/457c8e103f4c4b79?lnk=st&q=AdminSDHolder+2003&rnum=22#457c8e103f4c4b79 To set the "inherit permission..." flag on multiple user objects, do the following. If the users are still in a protected group, you will need to remove them or adminsdholder will overwrite your changes in an hour. (I make no promises as to the effect that this will have on your environment, but it worked in mine.) 1. Run a dsquery against the container that the objects reside in and pipe the results to a batch file called usernames.txt c:\dsquery users "ou=usercontainer,dc=mydomain,dc=com" >> c:\usernames.txt 2.Create a batch file with the following text - I like to see te output. @echo on for /f "tokens=1 delims=" %%x IN (usernames.txt) do dsacls %%x /P:N /R Guest for /f "tokens=1 delims=" %%x IN (usernames.txt) do dsacls %%x /S Exit Hope this helps someone, Ryan
setting account expire date problem
Upgrading to Windows 2003 from Windows 2000 Failed to open the group policy object Unable to assign TerminalServicesHomeDrive Letter using script. Least amount of privileges Loading GPMC AD Restore How to setup an account as non Domain admin to join comps to domai Problem File share access and Failure of domain controller replication .Net Framework 2.0 Deployment through AD |
|||||||||||||||||||||||