KACE Product Support Question

Change domain script

12/05/2014 1251 views
Our company is acquiring smaller firms all the time. Does anyone have a script that can be pushed to window 7 machines which will allow us to change their domain to ours without having to touch each machine and manually changing domain?
Answer Summary:
2 Comments   [ + ] Show comments


  • Are you adding the machines to an active directory tree? Are you joining the machines to a different server domain? Just changing the domain is not enough.
  • Current situation is that 2 totally seperate AD domains merged. While we have a trust setup between domains we have software which can only push PC policies inside one AD so we are looking for an automated way to do this rather than having to touch each machine.

    The machines in question are already attached to a domain which we will be phasing out.

    So essentially we are looking to move computers attached to domain B to domain A.

All Answers

Answered 12/06/2014 by: flip1001
Black Belt

From reading the comments there are a few options you can do.
Our company has the policy to re-image "new-come"  machine because of ISO certifications.
This option does seems to most problem proof method for later, more standard settings and so...

But before this ISO stuff, it was more easier to just join a machine, so long an agent was installed on it that would take care of policy and other settings...
If you have a service account that has rights as local administrator in both (all) domains, you can use this to generalize the computer.
I know of script that can unjoin and rejoin a server, so should be easier for a workstation.
Reboot will be required!
Answered 12/08/2014 by: dedenker
3rd Degree Black Belt

I would create a account in AD then use a powershell script and use kace to push it out. then force a reboot. But if you don't have kace or any other SMS System then I would use email or other means.
Answered 12/08/2014 by: mikesharp1
2nd Degree Black Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ