move computers to specific ou

hi every body
i can move joined computers to an ou with redircmp
if i want to move some computers to a ou and other computers to another ou how can i do that?
for example move clients to "client ou" and move all servers in "server ou" Automaticly.
zohre aghaeiAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

Mr MystikalCommented:
Hi There,

Are you looking to have newly created objects moved based on criteria at the time of creation  or are you hoping to do it after the fact ?

As far as I can tell , Redircmp can only place new objects in a single OU , however if I were you , I'd look to create a powershell script inside a scheduled task from a server , use things like Get-ADComputer with properties like operating system etc to identify the object and then move it based on the logic.

I know this isn't exactly what you were hoping but maybe it helps ?

Reference 1 : Inventorying Computers with AD PowerShell

Reference 2 : The Easy Way to Use PowerShell to Move Computer Accounts

P.s naturally there is also an option to pre-create the AD objects for servers before joining them , the above is for inherited AD cleanups :P.
0
zohre aghaeiAuthor Commented:
I want to change the path to my predetermined destination as soon as I send them to my domain.
so i think refrence2 is my answer, right?
0
Mr MystikalCommented:
Hi Zohre,

Traditionally one should be pre-creating AD objects for servers before joining them to the domain , however I assume this is out of your control , so yes essentially you can use the examples in ref 2 to learn how to move objects in AD , you will still need to set it up as a scheduled task to run at a frequency of your choosing.

I recommend searching for Get-ADComputer and having a look around , it's harmless to simply query a computer object to see what properties you can use in your future scripts , since Unix OS's do not populate the OperatingSystem attribute on our end.

I've not yet found any better way online to automate what you're looking for.

Using WMI in your scripts would be another way , alas that might not work on Unix based OS's.
0
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

zohre aghaeiAuthor Commented:
thank you very much for your guidance , i will do research, hope to find
1
Shaun VermaakTechnical Specialist IVCommented:
1

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
Mr MystikalCommented:
Shaun Vermark's post provided the most direct guidance to this question , no further comments have been made in approx 14 days.
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
Windows Server 2012

From novice to tech pro — start learning today.