Answer the question
In order to leave comments, you need to log in
How to copy/sync containers to AD?
Hello, there is a domain (ws 2012) and units Computers and Users.
Within the subdivision Users subdivisions are created Departments, then the names of departments ( Users-Departments-IT department ). There are many departments.
How to recreate the same structure of departments in the Computers container, and then edit one manually, and synchronize with the other with a script.
Answer the question
In order to leave comments, you need to log in
A lot of programming :)
get-adobject -filter 'objectclass -eq "organizationunit"' -searchbase 'cn=computers,'dn=site,dn=com' get objects, sort them, then create similar ones in users via new-adobject
with removal can only be problems - if there are users inside ou, you can run into trouble.
P.S. in general, the task is very far-fetched. Why keep two identical structures in different branches? After all, you can keep both users and computers nearby
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question