[Samba] Add DC to a site using command line

mathias dufresne infractory at gmail.com
Tue Oct 6 08:07:11 UTC 2015


Hi all,

Is there a command line to add DC to some site?

The idea is to have a domain with several sites. If the whole AD database
get corrupt I would restore some backup to recreate the first DC (the one
with FSMO) then I'll join all others DC to that domain to force them to
rebuild their database according to the one restored.

Doing that I'll get all DC with the right DB but also in the default site.
What's missing to be able to rebuild automatically the whole domain seems
to be the possibility to add DC to their site.

Having such a command we'll be able to rebuild completely a domain with
script, avoiding human mistake as possible...

Best regards,

mathias


More information about the samba mailing list