Can I use a registry entry to change what OU a win will reside in?

I'm looking for a way to move win7 systems from OU to OU without doing it in AD manually.

Is there a way to preform this using a registry setting on the client system itself?
Who is Participating?

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

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.

Seth SimmonsSr. Systems AdministratorCommented:
Is there a way to preform this using a registry setting on the client system itself?

the OU location of a system is stored in AD, not the local system

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
Steve WhitcherSystems AdministratorCommented:
As Seth said, there's no setting you could change on the client that would cause it to move to a different OU in active directory.  If you could tell us a little bit more about what you're trying to accomplish, we might be able to suggest an alternative solution.
rdefinoAuthor Commented:
Thanks for the replies. I have my systems automatically getting moved into a particular OU when they get imaged. But we are applying some firewall settings on certain systems using the registry and need those certain systems to be moved to the a different ou when the firewall settings are applied.

Did I make sense? :)
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

Seth SimmonsSr. Systems AdministratorCommented:
you'll have to move the object manually or create the computer account in advance in the correct OU then join to the domain

either way you'll have to touch AD
Gabriel CliftonNet AdminCommented:
If your computer naming scheme stays fairly constant, you could script your computer moves. Check out this one I had help creating.
Steve WhitcherSystems AdministratorCommented:
I would suggest you might look at applying the firewall settings via group policy, and link the group policy to the OU you want these computers to be in.  You still have to move the computers into the OU, but then that one step also gets your firewall settings applied, so it's all one step.

You could also script the OU change using powershell, if that would work better for you, but that's still going to have to be triggered somehow.  It seems to me like using the change of OU / GPO to apply your firewall changes would be the simplest route.
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
Active Directory

From novice to tech pro — start learning today.