Jump to content



Recommended Posts

I was hunting for awhile and finally came across a cmd that would disconnect/connect internet.

It only works for broadband although the command has dialup access aswell(Cant test no dialup)

Posted Image

It has 4 Functions:

_INetConnect($Service, $Username, $Password)

Will connect the service

Return Values:


0=Bad User/Pass

-1=Other error(Have to research em)


Will disconnect the service

Return Values:




Will check the status of a service

Return Values:



_INetReconnect($Service, $Username, $Password)

Will disconnect and reconnect the internet.

Return Values:


0=Bad user/pass

Example Script:

#include <INetCon.au3>

If _INetStatus("Sympatico") = 0 Then
_INetConnect("Sympatico", "b1xxxxx", "xxxxx")


Hopefully it will help people.

Link to comment
Share on other sites

  • 10 months later...

Many thanx. Works like a charm with my Dial up connection.

To get your Dial up connection name (in this example its called Sympatico) do this:

Right click on your dial up desktop shortcut -> Properties -> Find target

My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...