Jonathan
Fri Sep 09 15:57:51 CDT 2005
Try using WMI:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_networkadapterconfiguration.asp?frame=true
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/setgateways_method_in_class_win32_networkadapterconfiguration.asp
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Wouter" <w.koelewijn60$geenspam$@planet.nl> wrote in message
news:4321aaaf$0$11016$ba620dc5@nova.planet.nl...
> Is it possible to change the default gateway in the TCP-IP settings, using
> VB-script?
> On my children's computer, I would like to have one account that has
> access to the internet, the other account should have no access to the
> internet (including MSN etc.).
> When I change the default gateway into a value that doesn't comply with my
> router, no interet connection will be established.
> I want to automate this, in a start-up script for every user.
>
> Wouter.
>
>