[windows2000] Re: A question or two about rebooting servers t hat

  • From: Joe Shonk <JShonk@xxxxxxxxxxxxxx>
  • To: "'windows2000@xxxxxxxxxxxxx'" <windows2000@xxxxxxxxxxxxx>
  • Date: Wed, 2 Oct 2002 11:18:35 -0700

Interesting...  Thanks for sharing... You may be able to do away with
hardcoding the domain name by querying for the name..

ie.

Set objRootDSE = GetObject("LDAP://rootDSE";)
strDomainName = objRootDSE.Get("defaultNamingContext")

Will return the domain name in the form of DC=freelists,DC=org

Joe



-----Original Message-----
From: Sullivan, Glenn [mailto:GSullivan@xxxxxxxxxxxxxx]
Sent: Wednesday, October 02, 2002 10:20 AM
To: 'windows2000@xxxxxxxxxxxxx'
Subject: [windows2000] Re: A question or two about rebooting servers t
hat



I just threw together a batch file that automates a domain Synch, and
thought y'all might want to take a look.

This is short and sweet, and uses two tools from the support tools package:
repadmin.exe and search.vbs.  It queries your AD for members of the "Domain
Controllers" OU and then runs repadmin/syncall for each domain controller.

I am numbering the lines, because I know that line six (the important one)
is going to wrap.

Change lines 3 and 4 to match your domain.  As it is written, it will synch
all domain controllers in the "DomainName.com" domain.

<-------start-------->
1. @echo off
2. setlocal
3. set @DomainName=DomainName
4. set @DomainSuffix=com
5. 
6. for /f "tokens=4 skip=1" %%i in ('cscript //nologo
"%ProgramFiles%\Support Tools\search.vbs" "LDAP://OU=Domain
Controllers,DC=%@DomainName%,DC=%@DomainSuffix%" /p:name /q') do repadmin
/syncall %%i dc=%@DomainName%,dc=%@DomainSuffix% /force
7. endlocal
<--------end--------->

Hope this helps,

Glenn Sullivan, MCSE+I  MCDBA 
David Clark Company Inc. 

-----Original Message-----
From: Steven Peck DNET [mailto:speck@xxxxxxxxxxxx]
Sent: Wednesday, October 02, 2002 11:56 AM
To: 'windows2000@xxxxxxxxxxxxx'
Subject: [windows2000] Re: A question or two about rebooting servers t
hat



It does usually happen automatically, however I think the default time for
refresh is 90 minutes +/- 30 minutes.  This means that any changes can take
1-2 hours to appear.  You do the manual refresh to speed things up and to
troubleshoot if replication is occuring at all.


-----Original Message-----
From: Sullivan, Glenn [mailto:GSullivan@xxxxxxxxxxxxxx] 
Sent: Wednesday, October 02, 2002 5:22 AM
To: 'windows2000@xxxxxxxxxxxxx'
Subject: [windows2000] Re: A question or two about rebooting servers t hat



Replication is what copies changes that you make on one DC to the other DC's
in your AD.

It is supposed to happen automatically.

Are there any errors in the event logs on the DC's?  There is a "File
Replication Service" event log, where you may see errors reported...

Glenn Sullivan, MCSE+I  MCDBA
David Clark Company Inc.


-----Original Message-----
From: Rod Falanga [mailto:rjfalanga@xxxxxxxxxxxxxx]
Sent: Wednesday, October 02, 2002 8:15 AM
To: windows2000@xxxxxxxxxxxxx
Subject: [windows2000] Re: A question or two about rebooting servers that



I never even heard of a manual refresh before.  Like I said, I'm not a
system administrator, but have now been thrust into the role, simply because
the real system admin quit, and now I'm stuck with it.

Someone else suggested that there might be a problem with something called
replication.  It sounds to me as though this replication thing is supposed
to happen automatically.  If that is the case, then why would I need to do a
manual refresh?  And if it isn't the case, then what's replication for, in
the first place?

Rod
 

> -----Original Message-----
> From: Joe Shonk <JShonk@xxxxxxxxxxxxxx>
> Subject: [windows2000] Re: A question or two about rebooting servers
that
> Date: Tue, 1 Oct 2002 08:40:45 -0700
> 
> Did you do a manual refresh?
> 
> secedit /refreshpolicy machine_policy
> 
> or
> 
> secedit /refreshpolicy user_policy


==================================
To Unsubscribe, set digest or vacation
mode or view archives use the below link.

http://thethin.net/win2000list.cfm

==================================
To Unsubscribe, set digest or vacation
mode or view archives use the below link.

http://thethin.net/win2000list.cfm



==================================
To Unsubscribe, set digest or vacation
mode or view archives use the below link.

http://thethin.net/win2000list.cfm

Other related posts: