Re: Changing Default Gateway

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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


.



Relevant Pages

  • Changing Default Gateway
    ... Is it possible to change the default gateway in the TCP-IP settings, ... VB-script? ... I would like to have one account that has access ... to the internet, the other account should have no access to the internet ...
    (microsoft.public.scripting.vbscript)
  • Re: 3 mobile broadband - roaming...
    ... I called them beforehand and set up international roaming on the account. ... I can connect the modem to the network fine, but when I try to load webpages or run any other internet connected programs I get "the page cannot be displayed". ... I can ping 127.0.0.1 and the default gateway. ...
    (uk.comp.homebuilt)
  • Re: ? What are my options (to add a user account to WMI namespace) ?
    ... Use of any included script samples are subject to the terms specified at ... "Alex" wrote in message ... >>> I have to be able to add a user account to a WMI namespace, ... >> Create a User via ADSI and fullfill the data via WMI ...
    (microsoft.public.win32.programmer.wmi)
  • Re: disable active directory accounts from txt file?
    ... disable whichever account appeared first in the query. ... > aEntries = Split ... > Use of any included script samples are subject to the terms specified at ... > Please do not send e-mail directly to this alias. ...
    (microsoft.public.windows.server.scripting)
  • Re: ldifde import users and Enable account
    ... samAccountName: TestUser1 ... Use of included script samples are subject to the terms specified at ... Why not import account, then set password then enable account? ... doable with ldifde, ...
    (microsoft.public.windows.server.active_directory)