Link to home
Start Free TrialLog in
Avatar of stemc
stemcFlag for United States of America

asked on

If I restore computers container in to AD from backup will it replicate to all other DC's ?

We currently have the AD installed on several servers across multiple sites.  Last week one of our administrators ran a script to change the local admin password on all member workstations.  The script went wrong and it changed the password of the workstation's in the computers container, meaning none of our workstation in the COMPUTERS conatiner could authenticate to the domain.

We decided the quickest way to rectify the problem was to re-joint the for domain each PC (a big job).

I am currently backing up one DC with Veritas BE 9.1.   If I had restored the computers container from a recent backup, would the restored data have replicated to all other DCs or would they have sent an over-write to the data I restored as they would consider them seleves to have more recent data ?
Avatar of Toni Uranjek
Toni Uranjek
Flag of Slovenia image

Hi!

Post the contents of the script. If you changed workstation passwords with netdom I don't believe that restoring AD would help, you have to reset workstations passwords.

Toni
Avatar of stemc

ASKER

Hi Toni,

The script was as below, but was ran on every item in the computers container :

--------
For Each objComputer in colComputers
          strComputer = objComputer.CN
                if objComputer.Name = "CN=IS-PC" then
                  Wscript.Echo strComputer
                  wscript.Echo objComputer.Name
                  objComputer.SetPassword strPassword
                  objComputer.SetInfo      
                  Else
                  Wscript.Echo "nada"
      
      end if
---------------  
Next


Many thanks
ASKER CERTIFIED SOLUTION
Avatar of Toni Uranjek
Toni Uranjek
Flag of Slovenia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stemc

ASKER

Thanks for the prompt response Toni,

We have already re-joined the domain on the PC's and we will be sure never to run that particular script again !  So in theory I will never get chance to use the Netdom command.

The main thing I needed to know, you have answered !  That is ....... A restore of the computers container would not have worked.

Thanks again,

Ste