From: nirvana on 9 Sep 2009 11:26 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.
From: M Piceni on 10 Sep 2009 09:45 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/articleid/43024/managing-ip-routes-through-wmi.html Massimo. "nirvana" <nirvana(a)discussions.microsoft.com> ha scritto nel messaggio news:5D4BC1C7-4EFD-4AA2-BAFC-418DD8ADD7EA(a)microsoft.com... > 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. >
|
Pages: 1 Prev: End of Line Next: WMI ExecQuery from Win32_NTEventLogFile in a Workgroup environment |