Re: Changing Default Gateway
- From: "Jonathan Liu [MSFT]" <jonliu@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 9 Sep 2005 13:57:51 -0700
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@xxxxxxxxxxxxxxxxx
> 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.
>
>
.
- References:
- Changing Default Gateway
- From: Wouter
- Changing Default Gateway
- Prev by Date: Re: Win32_NetworkAdapterConfiguration Loop through W2K machines
- Next by Date: Re: ScriptPW.Password and ScriptPW.dll
- Previous by thread: Changing Default Gateway
- Next by thread: Re: Changing Default Gateway
- Index(es):
Relevant Pages
|