Interface Enable/Disable mystery using Netsh ?
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/disableAnd 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? How do I display real state of my interfaces ?Please explain me. thanks in advanceVilius
October 7th, 2008 2:53am

I noticed in the help for "set interface" (set interface ?) that it states the interface is automatically enabled if connect = connected is specified. I would assume that it means only if the connect option is specified on the command line with the admin option (and it also says the connect option for non-LAN connections), but maybe there is a bug. Try issuing the command as: set interface "local area connection" admin = DISABLED connect = DISCONNECTED.The one that groks it all...
Free Windows Admin Tool Kit Click here and download it now
October 14th, 2008 6:49pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics