Export (0) Print
Expand All

Scheduling auto-static updates

Updated: January 21, 2005

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Scheduling auto-static updates

You can automate scheduled updates by using a combination of Netsh utility scripts and Task Scheduler. To perform an automated auto-static update by using Routing Information Protocol (RIP) for IP, use the following netsh commands:

netsh interface set interface name= DemandDialInterfaceName connect=CONNECTED

netsh routing ip rip update DemandDialInterfaceName

netsh interface set interface name= DemandDialInterfaceName connect=DISCONNECTED

For example, to automatically update the RIP-for-IP routes by using a demand-dial connection called CorpHub, you type the following netsh commands:

netsh interface set interface name=CorpHub connect=CONNECTED

netsh routing ip rip update CorpHub

netsh interface set interface name=CorpHub connect=DISCONNECTED

You can run these commands from a batch file or you can place them in a Netsh script file. For example, the script file Corphub.scp runs the following commands for CorpHub:

interface set interface name=CorpHub connect=CONNECTED

routing ip rip update CorpHub

interface set interface name=CorpHub connect=DISCONNECTED

To run the Corphub.scp script, type the following at a command prompt:

netsh -f corphub.scp

After the batch file or Netsh script file is created, you can execute the batch file or Netsh script on a scheduled basis by using Task Scheduler.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft