PC Review


Reply
Thread Tools Rate Thread

disable LAN connection cmd

 
 
Crios
Guest
Posts: n/a
 
      17th Jan 2008
I have a LAN connection called let's say UPC (automatic IP and DNS) that I
want sometimes to disable (for a certain period).

Instead of using Ctrl Panel/... I would like to do this with a command
script file (.cmd) file placed on my desktop.

Probably is something with netsh, but this is just a guess.


Thanx,
Crios


 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      17th Jan 2008

"Crios" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a LAN connection called let's say UPC (automatic IP and DNS) that I
>want sometimes to disable (for a certain period).
>
> Instead of using Ctrl Panel/... I would like to do this with a command
> script file (.cmd) file placed on my desktop.
>
> Probably is something with netsh, but this is just a guess.
>
>
> Thanx,
> Crios
>


You can disable your network adapter with this command:

devcon disable {NameOfNetworkAdapter}

To find the name of your network adapter, type these commands:

devcon hwids "*" > c:\devcon.txt
notepad c:\devcon.txt

You can download devcon.exe from here:
http://download.microsoft.com/downlo...240/devcon.exe


 
Reply With Quote
 
Script
Guest
Posts: n/a
 
      19th Jan 2008
Are you adamant about using a script file, or do you just want a desktop
shortcut?
If you choose Create Shortcut from your Local Area Connection's context
menu, right-clicking the new Desktop shortcut allows you to Enable/Disable.

"Crios" wrote:

> I have a LAN connection called let's say UPC (automatic IP and DNS) that I
> want sometimes to disable (for a certain period).
>
> Instead of using Ctrl Panel/... I would like to do this with a command
> script file (.cmd) file placed on my desktop.
>
> Probably is something with netsh, but this is just a guess.
>
>
> Thanx,
> Crios
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot disable connection Sdruws Windows XP Networking 0 15th May 2007 09:23 PM
Cannot disable connection Sdruws Windows XP Networking 0 15th May 2007 04:20 PM
Disable all X-vnc connection...How? carenzio77 Windows XP Help 1 3rd Aug 2006 09:46 AM
Disable all X-vnc connection...How? carenzio77 Windows XP Networking 1 3rd Aug 2006 09:46 AM
Disable connection Luigi-Saverio Carlone Windows XP Help 0 6th Dec 2003 04:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:43 AM.