I need to have an easy way for our Help Desk to initiate AD replication.
Thus far I have been unable to find any script that will do this. When our
Help Desk creates new Exchange Mailboxes it sometimes takes 30 minutes or so
for things to show up. Ideally, I would like to just give our Help Desk
users a VBS script to run from their desktop that would initiate AD
replication on demand.


Thanks,
Fred

Re: AD Replication via a Script by Al

Al
Wed Jun 22 14:10:50 CDT 2005


"Fred Yarbrough" <fcyarbrough@yahoo.com> wrote in message
news:%23H$byY1dFHA.3012@tk2msftngp13.phx.gbl...
> I need to have an easy way for our Help Desk to initiate AD replication.
> Thus far I have been unable to find any script that will do this. When
our
> Help Desk creates new Exchange Mailboxes it sometimes takes 30 minutes or
so
> for things to show up. Ideally, I would like to just give our Help Desk
> users a VBS script to run from their desktop that would initiate AD
> replication on demand.

Our wait can be up to an hour, and we manage to live with that. Hey, if the
not-yet-a-user was *that* anxious to start sending and receiving e-mail, he
would have contacted us an hour earlier. ;-)

But seriously, why tinker with something that works? Replication traffic is
tough enough on the network when it runs on its own schedule - how much
worse would it be to force it whenever an admin or a help desk person makes
a change they would like to have take place instantaneously?

/Al



Re: AD Replication via a Script by Fred

Fred
Wed Jun 22 14:26:16 CDT 2005

Al,

Our network utilization runs less than 2% so performing AD replication has
virtually no
effect on our users. I see your point but never the less, I need a script
that will allow
me to replicate AD using a script.


Thanks,
Fred



"Al Dunbar [MS-MVP]" <alan-no-drub-spam@hotmail.com> wrote in message
news:uRMld41dFHA.2520@TK2MSFTNGP09.phx.gbl...
>
> "Fred Yarbrough" <fcyarbrough@yahoo.com> wrote in message
> news:%23H$byY1dFHA.3012@tk2msftngp13.phx.gbl...
> > I need to have an easy way for our Help Desk to initiate AD replication.
> > Thus far I have been unable to find any script that will do this. When
> our
> > Help Desk creates new Exchange Mailboxes it sometimes takes 30 minutes
or
> so
> > for things to show up. Ideally, I would like to just give our Help Desk
> > users a VBS script to run from their desktop that would initiate AD
> > replication on demand.
>
> Our wait can be up to an hour, and we manage to live with that. Hey, if
the
> not-yet-a-user was *that* anxious to start sending and receiving e-mail,
he
> would have contacted us an hour earlier. ;-)
>
> But seriously, why tinker with something that works? Replication traffic
is
> tough enough on the network when it runs on its own schedule - how much
> worse would it be to force it whenever an admin or a help desk person
makes
> a change they would like to have take place instantaneously?
>
> /Al
>
>



Re: AD Replication via a Script by Mark

Mark
Wed Jun 22 15:28:45 CDT 2005

Or knock it down to 15 minutes. Not something I'd suggest to everyone
Fred, but since you already know about your LAN/WAN stats then it's
worth a progressive reduction in replication parameters until you
either get to where you want to be or the users notice.


Re: AD Replication via a Script by Al

Al
Wed Jun 22 16:09:49 CDT 2005

Understood. Without knowing local conditions it is impossible to know what
impacts replication might have, but it is worth mentioning as *some*
environments suffer.

I do not know of any way to force replication in advance of the normal
schedule, however, you might consider trying to determine the individual
causes of the latency.

For example, mailbox creation is a job done by an exchange server, and that
may, in itself, have a certain lag. You might find that if you create the
account on, or email enable it on, a domain controller in the same LAN as
your exchange server, it might at least get started on the job sooner.

You might also be using universal distribution groups, in which case a new
account is not fully "there" until the global catalog replication takes
place.

Regarding your statement that you "need" the capability to force
replication, that would seem to be a need at a lower priority than having an
operational email system, for example. Is this a stated business need, a
perceived need of the user community and their managers, or is it your need
as the person responsible for keeping things running smoothly? If it turns
out that it is not possible, you may find you have to downgrade this "need"
to just "too bad we can't have it" status.

In your situation, I would look into increasing the frequency of replication
as Mark suggested. I suspect that your current system may be a LAN with high
bandwidth connections everywhere (we have many LANs connected via WAN links
from T1 down to 256KB circuits. If you reconfigure the replication interval,
just beware that you might need to back off on that later in the event your
infrastructure changes to include some slower links.


/Al

"Fred Yarbrough" <fcyarbrough@yahoo.com> wrote in message
news:ev93DB2dFHA.580@TK2MSFTNGP15.phx.gbl...
> Al,
>
> Our network utilization runs less than 2% so performing AD replication has
> virtually no
> effect on our users. I see your point but never the less, I need a script
> that will allow
> me to replicate AD using a script.
>
>
> Thanks,
> Fred
>
>
>
> "Al Dunbar [MS-MVP]" <alan-no-drub-spam@hotmail.com> wrote in message
> news:uRMld41dFHA.2520@TK2MSFTNGP09.phx.gbl...
> >
> > "Fred Yarbrough" <fcyarbrough@yahoo.com> wrote in message
> > news:%23H$byY1dFHA.3012@tk2msftngp13.phx.gbl...
> > > I need to have an easy way for our Help Desk to initiate AD
replication.
> > > Thus far I have been unable to find any script that will do this.
When
> > our
> > > Help Desk creates new Exchange Mailboxes it sometimes takes 30 minutes
> or
> > so
> > > for things to show up. Ideally, I would like to just give our Help
Desk
> > > users a VBS script to run from their desktop that would initiate AD
> > > replication on demand.
> >
> > Our wait can be up to an hour, and we manage to live with that. Hey, if
> the
> > not-yet-a-user was *that* anxious to start sending and receiving e-mail,
> he
> > would have contacted us an hour earlier. ;-)
> >
> > But seriously, why tinker with something that works? Replication traffic
> is
> > tough enough on the network when it runs on its own schedule - how much
> > worse would it be to force it whenever an admin or a help desk person
> makes
> > a change they would like to have take place instantaneously?
> >
> > /Al
> >
> >
>
>



Re: AD Replication via a Script by BCE

BCE
Wed Jun 22 20:53:19 CDT 2005

If your network utilization is that low, decrease your replication times on
your site links, I support a large ad infrastructure across 3 continents and
we use 15 minute replication intervals.
You can also control which GC's you exchange systems are talking to by
hardcoding the systems in system manager, you can then instruct your help
desk to only use those two systems when creating a mailbox.
If you have distributed exchange servers, you can still do that with a
little work.

This script we created off a microsoft script, be sure to read the comments,
you need add your domain names where the dc=?values are missing.
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' SYNCDC.vbs
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Version 1.1
' Script forces replication between 2 domain controllers - the TARGET server
' pulling information from the SOURCE server, provided an AD connector links
' them directly.
'
' This script can only be run on a Windows 2000 PC with the Windows 2000
Support
' Tools installed (found in the SUPPORT\TOOLS directory of the W2K Server
CD)
' and relies on IADsTools.DLL
'
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Changes:
'
' 1.1 Added target server name to success/failure message.
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Dim strTargetServer
Dim strSourceServer
Dim Result
Dim comDLL
Dim iReplErr
'
' Initialize the error flag
'
iReplErr = 0
'
' Requests source and target server names (both default to SEUKG-GC001)
'
strSourceServer = InputBox("Enter Source Server (Server to pull changes
from)", "Source Server?", "ENTER SOURCE SERVER NAME HERE")
strTargetServer = InputBox("Enter Target Server (Server to be updated)",
"Target Server?", "ENTER DESTINATION SERVER NAME HERE")
'
' Creates AD object
'
Set comDLL=Createobject("IADsTools.DCFunctions")
'
' Calls the subroutine to synchronize the Domain, Config and Schema
partitions
'
'YOU NEED TO FILL IN THE MISSING PIECES BELOW
'1ST LINE IS YOUR DOMAIN
Call SyncPart("DC=,DC=,DC=", strSourceServer, strTargetServer, sDomMsg,
iReplErr)
'2ND AND 3RD LINE IS FOR ROOT DOMAIN
Call SyncPart("CN=Configuration,DC=,DC=", strSourceServer, strTargetServer,
sConfMsg, iReplErr)
Call SyncPart("CN=Schema,CN=Configuration,DC=,DC=", strSourceServer,
strTargetServer, sSchemaMsg, iReplErr)
'
' Depending on replication success displays a status message
'
If iReplErr = 0 Then
iRetCode = MsgBox (sDomMsg & VbCrLf & sConfMsg & VbCrLf & sSchemaMsg,
vbInformation, "Replication to " & strTargetServer & " Successful")
Else
iRetCode = MsgBox (sDomMsg & VbCrLf & sConfMsg & VbCrLf & sSchemaMsg,
vbExclamation, "Replication to " & strTargetServer & " Failed")
End If

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' #### End of Main Program - Functions & Subroutines Follow
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Sub SyncPart(xPart, xSrc, xTrgt, xMsg, xReplErr)
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Triggers replication of appropriate partition with source server
' and returns either success messsage or error text
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Result=comDLL.ReplicaSync(Cstr(xTrgt), CStr(xPart), CStr(xSrc))
If Result=-1 Then
xMsg = "Failed to replicate partition " & xPart & " : " &
comDLL.LastErrorText
xReplErr = 1
Else
xMsg = "Partition " & xPart & " replicated successfully."
End if
End Sub


--
BRIAN EDWARDO
brianedwardo@email.uophx.com
arp421-aol
dirwolf@msn.com-msn messenger
"Fred Yarbrough" <fcyarbrough@yahoo.com> wrote in message
news:ev93DB2dFHA.580@TK2MSFTNGP15.phx.gbl...
> Al,
>
> Our network utilization runs less than 2% so performing AD replication has
> virtually no
> effect on our users. I see your point but never the less, I need a script
> that will allow
> me to replicate AD using a script.
>
>
> Thanks,
> Fred
>
>
>
> "Al Dunbar [MS-MVP]" <alan-no-drub-spam@hotmail.com> wrote in message
> news:uRMld41dFHA.2520@TK2MSFTNGP09.phx.gbl...
>>
>> "Fred Yarbrough" <fcyarbrough@yahoo.com> wrote in message
>> news:%23H$byY1dFHA.3012@tk2msftngp13.phx.gbl...
>> > I need to have an easy way for our Help Desk to initiate AD
>> > replication.
>> > Thus far I have been unable to find any script that will do this. When
>> our
>> > Help Desk creates new Exchange Mailboxes it sometimes takes 30 minutes
> or
>> so
>> > for things to show up. Ideally, I would like to just give our Help
>> > Desk
>> > users a VBS script to run from their desktop that would initiate AD
>> > replication on demand.
>>
>> Our wait can be up to an hour, and we manage to live with that. Hey, if
> the
>> not-yet-a-user was *that* anxious to start sending and receiving e-mail,
> he
>> would have contacted us an hour earlier. ;-)
>>
>> But seriously, why tinker with something that works? Replication traffic
> is
>> tough enough on the network when it runs on its own schedule - how much
>> worse would it be to force it whenever an admin or a help desk person
> makes
>> a change they would like to have take place instantaneously?
>>
>> /Al
>>
>>
>
>



Re: AD Replication via a Script by Torgeir

Torgeir
Thu Jun 23 01:19:30 CDT 2005

Fred Yarbrough wrote:

> I need to have an easy way for our Help Desk to initiate AD
> replication. Thus far I have been unable to find any script
> that will do this. When our Help Desk creates new Exchange
> Mailboxes it sometimes takes 30 minutes or so for things to
> show up. Ideally, I would like to just give our Help Desk
> users a VBS script to run from their desktop that would
> initiate AD replication on demand.
Hi,

Initiating Replication Between Active Directory Direct Replication
Partners
http://support.microsoft.com/kb/232072

and
http://groups.google.co.uk/group/microsoft.public.adsi.general/msg/44c9810de4bf18c7?hl=en
http://groups.google.co.uk/group/microsoft.public.win2000.active_directory/msg/4e8824dced142314?hl=en
http://groups.google.co.uk/group/microsoft.public.win2000.active_directory/msg/ff9864b4052cc88e?hl=en

and

Repadmin Overview
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/TechRef/24d8a2dd-2596-46cb-9b0f-179f977d434a.mspx

The latest version of Repadmin.exe is available here:

Windows Server 2003 Service Pack 1 Support Tools
http://support.microsoft.com/kb/892777




--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx

Re: AD Replication via a Script by Fred

Fred
Thu Jun 23 09:22:50 CDT 2005

Thanks Torgeir!


Fred
"Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
news:Oizn9v7dFHA.1920@tk2msftngp13.phx.gbl...
> Fred Yarbrough wrote:
>
> > I need to have an easy way for our Help Desk to initiate AD
> > replication. Thus far I have been unable to find any script
> > that will do this. When our Help Desk creates new Exchange
> > Mailboxes it sometimes takes 30 minutes or so for things to
> > show up. Ideally, I would like to just give our Help Desk
> > users a VBS script to run from their desktop that would
> > initiate AD replication on demand.
> Hi,
>
> Initiating Replication Between Active Directory Direct Replication
> Partners
> http://support.microsoft.com/kb/232072
>
> and
>
http://groups.google.co.uk/group/microsoft.public.adsi.general/msg/44c9810de4bf18c7?hl=en
>
http://groups.google.co.uk/group/microsoft.public.win2000.active_directory/msg/4e8824dced142314?hl=en
>
http://groups.google.co.uk/group/microsoft.public.win2000.active_directory/msg/ff9864b4052cc88e?hl=en
>
> and
>
> Repadmin Overview
>
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/TechRef/24d8a2dd-2596-46cb-9b0f-179f977d434a.mspx
>
> The latest version of Repadmin.exe is available here:
>
> Windows Server 2003 Service Pack 1 Support Tools
> http://support.microsoft.com/kb/892777
>
>
>
>
> --
> torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of
> the 1328 page Scripting Guide:
> http://www.microsoft.com/technet/scriptcenter/default.mspx



Re: AD Replication via a Script by Fred

Fred
Thu Jun 23 09:22:33 CDT 2005

Thanks for the input. I had already set the replication to 15 minutes. I
have been using the AD Sites and Services to manually force replication but
just wanted to give our Help Desk an easier way. Thanks for your input.


Fred





"BCE" <dirwolf@speakeasy.net> wrote in message
news:e2yKWZ5dFHA.2664@TK2MSFTNGP15.phx.gbl...
> If your network utilization is that low, decrease your replication times
on
> your site links, I support a large ad infrastructure across 3 continents
and
> we use 15 minute replication intervals.
> You can also control which GC's you exchange systems are talking to by
> hardcoding the systems in system manager, you can then instruct your help
> desk to only use those two systems when creating a mailbox.
> If you have distributed exchange servers, you can still do that with a
> little work.
>
> This script we created off a microsoft script, be sure to read the
comments,
> you need add your domain names where the dc=?values are missing.
>
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
''''
> ' SYNCDC.vbs
>
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
''''
> ' Version 1.1
> ' Script forces replication between 2 domain controllers - the TARGET
server
> ' pulling information from the SOURCE server, provided an AD connector
links
> ' them directly.
> '
> ' This script can only be run on a Windows 2000 PC with the Windows 2000
> Support
> ' Tools installed (found in the SUPPORT\TOOLS directory of the W2K Server
> CD)
> ' and relies on IADsTools.DLL
> '
> '
>
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
''''
> ' Changes:
> '
> ' 1.1 Added target server name to success/failure message.
> '
>
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
''''
> Dim strTargetServer
> Dim strSourceServer
> Dim Result
> Dim comDLL
> Dim iReplErr
> '
> ' Initialize the error flag
> '
> iReplErr = 0
> '
> ' Requests source and target server names (both default to SEUKG-GC001)
> '
> strSourceServer = InputBox("Enter Source Server (Server to pull changes
> from)", "Source Server?", "ENTER SOURCE SERVER NAME HERE")
> strTargetServer = InputBox("Enter Target Server (Server to be updated)",
> "Target Server?", "ENTER DESTINATION SERVER NAME HERE")
> '
> ' Creates AD object
> '
> Set comDLL=Createobject("IADsTools.DCFunctions")
> '
> ' Calls the subroutine to synchronize the Domain, Config and Schema
> partitions
> '
> 'YOU NEED TO FILL IN THE MISSING PIECES BELOW
> '1ST LINE IS YOUR DOMAIN
> Call SyncPart("DC=,DC=,DC=", strSourceServer, strTargetServer, sDomMsg,
> iReplErr)
> '2ND AND 3RD LINE IS FOR ROOT DOMAIN
> Call SyncPart("CN=Configuration,DC=,DC=", strSourceServer,
strTargetServer,
> sConfMsg, iReplErr)
> Call SyncPart("CN=Schema,CN=Configuration,DC=,DC=", strSourceServer,
> strTargetServer, sSchemaMsg, iReplErr)
> '
> ' Depending on replication success displays a status message
> '
> If iReplErr = 0 Then
> iRetCode = MsgBox (sDomMsg & VbCrLf & sConfMsg & VbCrLf & sSchemaMsg,
> vbInformation, "Replication to " & strTargetServer & " Successful")
> Else
> iRetCode = MsgBox (sDomMsg & VbCrLf & sConfMsg & VbCrLf & sSchemaMsg,
> vbExclamation, "Replication to " & strTargetServer & " Failed")
> End If
>
> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
> ' #### End of Main Program - Functions & Subroutines Follow
> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
> Sub SyncPart(xPart, xSrc, xTrgt, xMsg, xReplErr)
> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
> ' Triggers replication of appropriate partition with source server
> ' and returns either success messsage or error text
> '
> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
> Result=comDLL.ReplicaSync(Cstr(xTrgt), CStr(xPart), CStr(xSrc))
> If Result=-1 Then
> xMsg = "Failed to replicate partition " & xPart & " : " &
> comDLL.LastErrorText
> xReplErr = 1
> Else
> xMsg = "Partition " & xPart & " replicated successfully."
> End if
> End Sub
>
>
> --
> BRIAN EDWARDO
> brianedwardo@email.uophx.com
> arp421-aol
> dirwolf@msn.com-msn messenger
> "Fred Yarbrough" <fcyarbrough@yahoo.com> wrote in message
> news:ev93DB2dFHA.580@TK2MSFTNGP15.phx.gbl...
> > Al,
> >
> > Our network utilization runs less than 2% so performing AD replication
has
> > virtually no
> > effect on our users. I see your point but never the less, I need a
script
> > that will allow
> > me to replicate AD using a script.
> >
> >
> > Thanks,
> > Fred
> >
> >
> >
> > "Al Dunbar [MS-MVP]" <alan-no-drub-spam@hotmail.com> wrote in message
> > news:uRMld41dFHA.2520@TK2MSFTNGP09.phx.gbl...
> >>
> >> "Fred Yarbrough" <fcyarbrough@yahoo.com> wrote in message
> >> news:%23H$byY1dFHA.3012@tk2msftngp13.phx.gbl...
> >> > I need to have an easy way for our Help Desk to initiate AD
> >> > replication.
> >> > Thus far I have been unable to find any script that will do this.
When
> >> our
> >> > Help Desk creates new Exchange Mailboxes it sometimes takes 30
minutes
> > or
> >> so
> >> > for things to show up. Ideally, I would like to just give our Help
> >> > Desk
> >> > users a VBS script to run from their desktop that would initiate AD
> >> > replication on demand.
> >>
> >> Our wait can be up to an hour, and we manage to live with that. Hey, if
> > the
> >> not-yet-a-user was *that* anxious to start sending and receiving
e-mail,
> > he
> >> would have contacted us an hour earlier. ;-)
> >>
> >> But seriously, why tinker with something that works? Replication
traffic
> > is
> >> tough enough on the network when it runs on its own schedule - how much
> >> worse would it be to force it whenever an admin or a help desk person
> > makes
> >> a change they would like to have take place instantaneously?
> >>
> >> /Al
> >>
> >>
> >
> >
>
>



Re: AD Replication via a Script by no

no
Sun Jun 26 09:39:17 CDT 2005

if you want "things to show up" immediately, simply send an email to the new
user, or log on to the account. either of these things will create the
exchange mailbox and email address for the new user



"Fred Yarbrough" <fcyarbrough@yahoo.com> wrote in message
news:%23H$byY1dFHA.3012@tk2msftngp13.phx.gbl...
>I need to have an easy way for our Help Desk to initiate AD replication.
> Thus far I have been unable to find any script that will do this. When
> our
> Help Desk creates new Exchange Mailboxes it sometimes takes 30 minutes or
> so
> for things to show up. Ideally, I would like to just give our Help Desk
> users a VBS script to run from their desktop that would initiate AD
> replication on demand.
>
>
> Thanks,
> Fred
>
>



Re: AD Replication via a Script by Leif

Leif
Sun Jun 26 10:13:58 CDT 2005

Hi,

Not quite the case. You can't send an email to a new user till the email
address has been created by the recipient update service.

Leif

<no@spam.com> skrev i en meddelelse news:57zve.49$t07.1@fe12.lga...
> if you want "things to show up" immediately, simply send an email to the
new
> user, or log on to the account. either of these things will create the
> exchange mailbox and email address for the new user
>
>
>
> "Fred Yarbrough" <fcyarbrough@yahoo.com> wrote in message
> news:%23H$byY1dFHA.3012@tk2msftngp13.phx.gbl...
> >I need to have an easy way for our Help Desk to initiate AD replication.
> > Thus far I have been unable to find any script that will do this. When
> > our
> > Help Desk creates new Exchange Mailboxes it sometimes takes 30 minutes
or
> > so
> > for things to show up. Ideally, I would like to just give our Help Desk
> > users a VBS script to run from their desktop that would initiate AD
> > replication on demand.
> >
> >
> > Thanks,
> > Fred
> >
> >
>
>



Re: AD Replication via a Script by Joe

Joe
Sun Jun 26 12:32:19 CDT 2005

You should probably try to understand where the issue is. Creating a new mailbox
isn't simply a matter of the createmailbox call. The info has to get to the RUS,
the RUS has to process it in the order received, then that has to get back out
to the DC that a user will hit. Often people simply need to understand that if
they put the change close to the RUS things work faster and that is enough.

joe

--
Joe Richards Microsoft MVP Windows Server Directory Services
www.joeware.net


Fred Yarbrough wrote:
> I need to have an easy way for our Help Desk to initiate AD replication.
> Thus far I have been unable to find any script that will do this. When our
> Help Desk creates new Exchange Mailboxes it sometimes takes 30 minutes or so
> for things to show up. Ideally, I would like to just give our Help Desk
> users a VBS script to run from their desktop that would initiate AD
> replication on demand.
>
>
> Thanks,
> Fred
>
>

Re: AD Replication via a Script by Jim

Jim
Tue Jul 05 15:17:54 CDT 2005

Why not use the AD replication monitor tool, you can push or pull AD
updates.
See

http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/TechRef/691910f2-a6a7-4ced-984e-972aec2cbdd2.mspx


"Fred Yarbrough" <fcyarbrough@yahoo.com> wrote in message
news:Oh1HA8$dFHA.3712@TK2MSFTNGP12.phx.gbl...
> Thanks for the input. I had already set the replication to 15 minutes. I
> have been using the AD Sites and Services to manually force replication
> but
> just wanted to give our Help Desk an easier way. Thanks for your input.
>
>
> Fred
>
>
>
>
>
> "BCE" <dirwolf@speakeasy.net> wrote in message
> news:e2yKWZ5dFHA.2664@TK2MSFTNGP15.phx.gbl...
>> If your network utilization is that low, decrease your replication times
> on
>> your site links, I support a large ad infrastructure across 3 continents
> and
>> we use 15 minute replication intervals.
>> You can also control which GC's you exchange systems are talking to by
>> hardcoding the systems in system manager, you can then instruct your help
>> desk to only use those two systems when creating a mailbox.
>> If you have distributed exchange servers, you can still do that with a
>> little work.
>>
>> This script we created off a microsoft script, be sure to read the
> comments,
>> you need add your domain names where the dc=?values are missing.
>>
> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
> ''''
>> ' SYNCDC.vbs
>>
> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
> ''''
>> ' Version 1.1
>> ' Script forces replication between 2 domain controllers - the TARGET
> server
>> ' pulling information from the SOURCE server, provided an AD connector
> links
>> ' them directly.
>> '
>> ' This script can only be run on a Windows 2000 PC with the Windows 2000
>> Support
>> ' Tools installed (found in the SUPPORT\TOOLS directory of the W2K Server
>> CD)
>> ' and relies on IADsTools.DLL
>> '
>> '
>>
> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
> ''''
>> ' Changes:
>> '
>> ' 1.1 Added target server name to success/failure message.
>> '
>>
> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
> ''''
>> Dim strTargetServer
>> Dim strSourceServer
>> Dim Result
>> Dim comDLL
>> Dim iReplErr
>> '
>> ' Initialize the error flag
>> '
>> iReplErr = 0
>> '
>> ' Requests source and target server names (both default to SEUKG-GC001)
>> '
>> strSourceServer = InputBox("Enter Source Server (Server to pull changes
>> from)", "Source Server?", "ENTER SOURCE SERVER NAME HERE")
>> strTargetServer = InputBox("Enter Target Server (Server to be updated)",
>> "Target Server?", "ENTER DESTINATION SERVER NAME HERE")
>> '
>> ' Creates AD object
>> '
>> Set comDLL=Createobject("IADsTools.DCFunctions")
>> '
>> ' Calls the subroutine to synchronize the Domain, Config and Schema
>> partitions
>> '
>> 'YOU NEED TO FILL IN THE MISSING PIECES BELOW
>> '1ST LINE IS YOUR DOMAIN
>> Call SyncPart("DC=,DC=,DC=", strSourceServer, strTargetServer, sDomMsg,
>> iReplErr)
>> '2ND AND 3RD LINE IS FOR ROOT DOMAIN
>> Call SyncPart("CN=Configuration,DC=,DC=", strSourceServer,
> strTargetServer,
>> sConfMsg, iReplErr)
>> Call SyncPart("CN=Schema,CN=Configuration,DC=,DC=", strSourceServer,
>> strTargetServer, sSchemaMsg, iReplErr)
>> '
>> ' Depending on replication success displays a status message
>> '
>> If iReplErr = 0 Then
>> iRetCode = MsgBox (sDomMsg & VbCrLf & sConfMsg & VbCrLf & sSchemaMsg,
>> vbInformation, "Replication to " & strTargetServer & " Successful")
>> Else
>> iRetCode = MsgBox (sDomMsg & VbCrLf & sConfMsg & VbCrLf & sSchemaMsg,
>> vbExclamation, "Replication to " & strTargetServer & " Failed")
>> End If
>>
>> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
>> ' #### End of Main Program - Functions & Subroutines Follow
>> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
>> Sub SyncPart(xPart, xSrc, xTrgt, xMsg, xReplErr)
>> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
>> ' Triggers replication of appropriate partition with source server
>> ' and returns either success messsage or error text
>> '
>> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
>> Result=comDLL.ReplicaSync(Cstr(xTrgt), CStr(xPart), CStr(xSrc))
>> If Result=-1 Then
>> xMsg = "Failed to replicate partition " & xPart & " : " &
>> comDLL.LastErrorText
>> xReplErr = 1
>> Else
>> xMsg = "Partition " & xPart & " replicated successfully."
>> End if
>> End Sub
>>
>>
>> --
>> BRIAN EDWARDO
>> brianedwardo@email.uophx.com
>> arp421-aol
>> dirwolf@msn.com-msn messenger
>> "Fred Yarbrough" <fcyarbrough@yahoo.com> wrote in message
>> news:ev93DB2dFHA.580@TK2MSFTNGP15.phx.gbl...
>> > Al,
>> >
>> > Our network utilization runs less than 2% so performing AD replication
> has
>> > virtually no
>> > effect on our users. I see your point but never the less, I need a
> script
>> > that will allow
>> > me to replicate AD using a script.
>> >
>> >
>> > Thanks,
>> > Fred
>> >
>> >
>> >
>> > "Al Dunbar [MS-MVP]" <alan-no-drub-spam@hotmail.com> wrote in message
>> > news:uRMld41dFHA.2520@TK2MSFTNGP09.phx.gbl...
>> >>
>> >> "Fred Yarbrough" <fcyarbrough@yahoo.com> wrote in message
>> >> news:%23H$byY1dFHA.3012@tk2msftngp13.phx.gbl...
>> >> > I need to have an easy way for our Help Desk to initiate AD
>> >> > replication.
>> >> > Thus far I have been unable to find any script that will do this.
> When
>> >> our
>> >> > Help Desk creates new Exchange Mailboxes it sometimes takes 30
> minutes
>> > or
>> >> so
>> >> > for things to show up. Ideally, I would like to just give our Help
>> >> > Desk
>> >> > users a VBS script to run from their desktop that would initiate AD
>> >> > replication on demand.
>> >>
>> >> Our wait can be up to an hour, and we manage to live with that. Hey,
>> >> if
>> > the
>> >> not-yet-a-user was *that* anxious to start sending and receiving
> e-mail,
>> > he
>> >> would have contacted us an hour earlier. ;-)
>> >>
>> >> But seriously, why tinker with something that works? Replication
> traffic
>> > is
>> >> tough enough on the network when it runs on its own schedule - how
>> >> much
>> >> worse would it be to force it whenever an admin or a help desk person
>> > makes
>> >> a change they would like to have take place instantaneously?
>> >>
>> >> /Al
>> >>
>> >>
>> >
>> >
>>
>>
>
>