Share via


Scheduling auto-static updates

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 updateDemandDialInterfaceName

**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.