Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Add ip route to a computer.

Reply
 
Old 09-09-2009   #1 (permalink)
nirvana


 
 

Add ip route to a computer.

Is it possible to add a ip route to a remote computer? I know it is possible
by using WScript.Shell with the route add command.

But is there a better way of doing this? Thanks.


My System SpecsSystem Spec
Old 09-10-2009   #2 (permalink)
M Piceni


 
 

Re: Add ip route to a computer.

Hi Nirvana,

what about WMI ? It's often a good choice because it runs in the same way
both locally and remotely.
To manage routes see Win32_IP4RouteTable and Win32_IP4PersistedRouteTable.
These classes had no ADD method, but you can add a route simply creating a
new instance of the same type (SpawnInstance method of the WMI base object
on namespace root/cimv2).
A good article about this is on WindowsITPro:
http://windowsitpro.com/article/arti...rough-wmi.html

Massimo.

"nirvana" <nirvana@xxxxxx> ha scritto nel messaggio
news:5D4BC1C7-4EFD-4AA2-BAFC-418DD8ADD7EA@xxxxxx
Quote:

> Is it possible to add a ip route to a remote computer? I know it is
> possible
> by using WScript.Shell with the route add command.
>
> But is there a better way of doing this? Thanks.
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Route Tables ?? Vista General
Add Route Vista General
new computer with vista/cannot connect to internet using isp route Vista networking & sharing
Help: Route Add Failed? Vista General
Route add doesn't work Vista networking & sharing


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46