Currently we have a security group named: Limited_IT_Admins that has special permissions (restricted to only certain tasks they can do) on ~7 City OUs within a Country OU.
[Country] <- top level OU
[City01]
[City02]
[City03]
[City04]
[City05]
[City06]
[City07]
However, now I have to split this single Security Group into three individual groups. Users from the Limited_IT_Admin group will be split up into the three separate new groups. The users will need the same access as the Limited_IT_Admins did, but only on their respective OUs.
Limited_IT_Admin_01 - User01
City01, City02, City03
Limited_IT_Admin_02 - User02
City04, City05
Limited_IT_Admin_03 - User03
City06, City07
Instead of having to try to recreate all the special permissions that were set on the security group, is there any easier way to copy the permissions the Limited_IT_Admins had to the three new groups?
I've created a Powershell function
Copy-DsAcl
which should assist with performing this sort of Active Directory permissions copy. Using this function, the original answer (below the line) may be rewritten more cleanly as:The Powershell below should do what you're asking. There are a few requirements:
$root
- the PSDrive to your "root" OU. "Country" in your question.$sourceOU
- the source OU (name, not DN) from which you will copy the ACEs.$sourceGroup
- the group (name, not DN or domain) listed in the ACL which you will copy.$targetGroups
- Hash of groups (name, not DN or domain) and OUs (name, not DN) for applying the ACEs.Reading all this over I think I should probably just write a more generic function,
CopyOuAcl
, and update this when that's done. As it is written now, it is completely specific to your question and environment.http://gallery.technet.microsoft.com/scriptcenter/Copying-permissions-for-d3c3b839
Or just copy the NtSecurityDescriptor. http://blogs.msdn.com/spatdsg/archive/2007/05/24/copying-delegation-permissions-from-an-ou-to-another.aspx