Networking Forums

Networking Forums > Computer Networking > Windows Networking > Interface Enable/Disable mystery using Netsh ?

Reply
Thread Tools Display Modes

Interface Enable/Disable mystery using Netsh ?

 
 
Vilius
Guest
Posts: n/a

 
      10-06-2008, 11:42 PM
Hi,

I just wanted simple thing - Enable/Disable my network interfaces using
command line interface.
I found this netsh interface context command:
netsh interface> set interface name="local area connection"
admin=enable/disable
And it works fine.
I use another command to display list, state of interfaces:
netsh interface> show intercace
!!! And it ALWAYS displays "Enabled" in "admin state" column ! - It doesn't
matter if interface is disabled or enabled - all interfaces are always
displayed as Enabled(admin state).

I misunderstanding something or what ? How do I display real state of my
interfaces ?
Please explain me.

thanks in advance
Vilius


 
Reply With Quote
 
 
 
 
Robert L. \(MS-MVP\)
Guest
Posts: n/a

 
      10-07-2008, 02:41 AM
netsh behaves differently on different Windows versions. You may try netsh
interface set interface "Local Area Connection" DISABLED. Also, if connect =
CONNECTED is specified, then the interface is automatically enabled even if
the admin = DISABLED option is specified. So, you may add connect =
disconnect. This link may help too.
netsh command
Netsh is a command-line scripting utility that allows you to, either
locally or remotely, display, modify or script the network configuration of
a computer ...
www.chicagotech.net/netsh.htm


--
Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on
http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on
http://www.HowToNetworking.com
"Vilius" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I just wanted simple thing - Enable/Disable my network interfaces using
> command line interface.
> I found this netsh interface context command:
> netsh interface> set interface name="local area connection"
> admin=enable/disable
> And it works fine.
> I use another command to display list, state of interfaces:
> netsh interface> show intercace
> !!! And it ALWAYS displays "Enabled" in "admin state" column ! - It
> doesn't matter if interface is disabled or enabled - all interfaces are
> always displayed as Enabled(admin state).
>
> I misunderstanding something or what ? How do I display real state of my
> interfaces ?
> Please explain me.
>
> thanks in advance
> Vilius
>
>


 
Reply With Quote
Reply

Thread Tools
Display Modes

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
netsh interface ip set dns joey Windows Networking 1 10-07-2008 11:40 AM
Remove the IPv6-support for an interface with netsh in W2k8 Jose Santos Windows Networking 1 10-02-2008 10:27 AM
netsh disable works intermittently bic1ster@gmail.com Windows Networking 0 08-18-2008 01:39 PM
netsh disable works intermittently bic1ster@gmail.com Windows Networking 1 06-17-2008 10:40 AM
I am in need of a netsh script that will disable the "Local Area Connection" interface then re-enable that same interface. Spin Windows Networking 3 11-03-2005 12:58 AM



1 2 3 4 5 6 7 8 9 10 11