Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: internet connection window

19 May 2012   #1
hypercube

Windows 7 Home Premium 64bit
 
 
internet connection window

Probably this is a stupid question... if so I apologize in advance.

Previously I had an adsl modem. I also had a shortcut to set the connection (or disconnection) from the internet like the following one


Recently I bought a new "wireless-adsl router" (D-Link DSL-2680).
I don't know (or don't remember) how can I configure a similar window to enable/disable the internet connection of the new router on the fly through W7. At the moment the router is automatically connected to the Internet at every start-up (the router is connected to a lan port of my desktop) and the only option I see now to change its connection status is to access the router settings through the web (192.168.1.1). Anyway that's much more complicated than before, when I could use above shortcut to open the internet connection dialog to connect or disconnect on the fly.

Probably I'm missing some W7 option to recreate the Internet connection dialog window on the new router...
Any help?


My System SpecsSystem Spec
.
19 May 2012   #2
boohbah

Microsoft Windows 7 Home Premium 64-bit 7600
 
 

taken from post #4 here

Quote:
  • Click Start. Enter "CMD" (without the quotes) in the Search Program and Files box
  • Right Click on the CMD prompt that appears at the top of the menu and select Run As Administrator
  • In the command window that opens enter the following code: "wmic nic get name, index" Without the quotes
  • Take a note of the index number of your network port.
  • Now Open Notepad (Start>Accessoroes>Notepad) and enter the text "wmic path win32_networkadapter where index=XX call disable" Without the quotes. Where XX is the index number you just noted.
  • Save this file on your desktop as a file called Internet off.bat
  • Create a copy of that file and edit it to contain the text "wmic path win32_networkadapter where index=XX call enable" Without the quotes. Where XX is the index number you noted earlier.
  • Save this copy of the file on your desktop called Internet on.bat

Test the files: Double click on Internet off and you should go offline (Print out these instructions first!). Double click the Internet on file and you should come back online in a few seconds.
My System SpecsSystem Spec
19 May 2012   #3
hypercube

Windows 7 Home Premium 64bit
 
 

Quote   Quote: Originally Posted by boohbah View Post
taken from post #4 here

Quote:
  • Click Start. Enter "CMD" (without the quotes) in the Search Program and Files box
  • Right Click on the CMD prompt that appears at the top of the menu and select Run As Administrator
  • In the command window that opens enter the following code: "wmic nic get name, index" Without the quotes
  • Take a note of the index number of your network port.
  • Now Open Notepad (Start>Accessoroes>Notepad) and enter the text "wmic path win32_networkadapter where index=XX call disable" Without the quotes. Where XX is the index number you just noted.
  • Save this file on your desktop as a file called Internet off.bat
  • Create a copy of that file and edit it to contain the text "wmic path win32_networkadapter where index=XX call enable" Without the quotes. Where XX is the index number you noted earlier.
  • Save this copy of the file on your desktop called Internet on.bat

Test the files: Double click on Internet off and you should go offline (Print out these instructions first!). Double click the Internet on file and you should come back online in a few seconds.
Thanks

It works!

That's a good beginning... but I'm a little surprised that there isn't a specific W7 gui window to get the same result... Anyway maybe I could build one with your code...

I'm also curious about wether is it possible to send such a command automatically to the router instead of completeley disabling the lan port which it's connected to... (in my router I can disable internet through the web settings - accessing it by the address 192.168.1.1 ). Maybe there are some telnet command that could do this... I'll investigate further with the D-Link support...

Thanks anyway!
My System SpecsSystem Spec
.

19 May 2012   #4
boohbah

Microsoft Windows 7 Home Premium 64-bit 7600
 
 

glad you have it working, for the record ,its not my code , i linked the source in my first post.
My System SpecsSystem Spec
Reply

 internet connection window




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
USB internet connection works, Ethernet internet connection does not
OK. I'm trying to switch from wireless to a faster(?) ethernet cable based internet access. I use a Dell Optiplex 755, 32 bit OS, Windows 7. I'm the utilizing Comcast high speed internet supplier, a LinkSys E4200 wireless router, a LinkSys WUMC710 (wireless-ac universal media connector; with...
Network & Sharing
LAN connection without internet stops wireless internet connection
Well I've fiddled around and searched to no avail ... I have some form of conflict between my main wireless network and a LAN I use for file transfer and streaming. The attached PDF file illustrates the setup. Basically, the wireless network is fine by itself. Music streams from the...
Network & Sharing
Internet Connection Sharing cmd window pops up at startup
Every time I start my PC, this Internet Connection Sharing cmd window pops up. It displays some commands and halts. Then I need to close it. It never used to happen earlier, but since a couple of week its happening continuously. Following window appears on the startup and displays some command...
Network & Sharing
Fallback to second internet connection after internet access loss?
My computer has two network adapters connected to two different internet gateways. One is Ethernet and the other is WIFI. The Ethernet connection is first on the access order list (if you don't know what I'm talking about, see the image attached) and the WIFI is second. Today, the internet...
Network & Sharing
Internet connection error or internet Download Manager problem
I'm using IDM 5.19 build 3 in may DELL Studio 14 using Windows 7. Recently I cannot finish my downloads. When I start the queue the speed will be around 200kbps but after a few seconds the speed fluctuates and becomes slower. The speed becomes 5kbps or slower. Is this my internet connection or...
Software
Wireless network connection lost internet connection
Hi everyone, I work in an office where we have a main desktop computer which is connected to the internet via a Time Warner modem. The modem is connected by cable to a netgear wireless router, and up until today there have been no problems connecting to the internet from the laptops that use the...
Network & Sharing


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 12:49.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App