|
|
||||||
|
#1
|
|
|
|
|
On Windows XP Pro SP2 I need to enable or disable a network adapter
using netsh.exe but the command: netsh interface set interface name="Wired LAN" admin=ENABLED fails with the message "One or more essential parameters not specified". What is the correct syntax? I have had no luck finding an example using Google. Note that I know the name of the interface is correct because I can change the adapter from DHCP to a static IP address and back using netsh.exe. Thanks. |
|
|
|
#2
|
|
|
|
|
for parameter help use
netsh interface set interface /? Bill wrote: [..] |
|
#3
|
|
|
|
|
I have done that and the command I posted matches the help display
exactly as I interpret it. |
|
#4
|
|
|
|
|
Netsh does not seem to support enabling LAN interfaces.
You can try the "devcon" utility to enable/disable the physical net adapter. Regards, --PA "Bob I" <birelan> wrote in message news:4324 [..] |
|
#5
|
|
|
|
|
Looking up the term Netsh commands in Windows "Help and Support" and
picking "Netsh commands for Routing" and then "set interface" gets more info and an example. Bill wrote: |
|
#6
|
|
|
|
|
Thanks. Help & Support is usually so completely worthless that I never
considered looking there. Unfortunately, the information in Help & Support does not show a way to enable or disable the adapter. |
|
#7
|
|
|
|
|
Perhaps you are wanting the "physical" disable as mentioned earlier by
Pavel? Bill wrote: [..] |
|
#8
|
|
|
|
|
Pavel A. wrote:
> Netsh does not seem to support enabling LAN interfaces. > You can try the "devcon" utility to enable/disable the physical net > adapter. I tried devcon. It worked perfectly with the ethernet adapter. When I tried it with my wireless adapter it disabled about 12 devices including the external mouse. Fortunately rebooting to the last good configuration saved me. Devcon is clearly too dangerous for me. I'll disable and enable the adapters manually in device manager. |
|
#9
|
|
|
|
|
"Bill" <no> wrote in message news:5348
> Pavel A. wrote: > >> Netsh does not seem to support enabling LAN interfaces. >> You can try the "devcon" utility to enable/disable the physical net >> adapter. > > I tried devcon. It worked perfectly with the ethernet adapter. When I > tried it with my wireless adapter it disabled about 12 devices > including the external mouse. Fortunately rebooting to the last good > configuration saved me. Devcon is clearly too dangerous for me. I'll > disable and enable the adapters manually in device manager. > ?? perhaps you gave it a wrong device id (like USB\* :) Devcon is very well tested and just should work as documented. If you have troubles with it, please ask in microsoft.public.development.device.drivers --PA |
|
|
| Similar Threads | |
| Enable/Disable Network Adapter Hi, How can I enable and disable a network adapter in eVC++? SetIFEntry is not good enough. It does not really disables it. Only the TCP. And by using GetInterfaceInfo or... |
|
| Enable a network adapter in XP using WMI with C++ I'm trying to find a way to enable a network interface with C++. After trying various methods, I ended up looking at WMI. I found a Win32_NetworkAdapter class that had an... |
|
| script to repair (enable/disable) wlan adapter My XP Pro SP2 laptop travels between several similar wireless networks during the course of a day (from job to job), and I prefer to hibernate rather than shut down between... |
|
| How to Dis/Enable Network Adapter? Hi all, i would like now to disable and enable network adapter programmatically with c#. I have searched but found nothing useful. There's no topic about this problem. Has... |
|
| disable wireless adapter and enable wired w/script? On my laptop I need to switch frequently between wired lan port at my desk and wireless connection in meetings,etc. I must right click enable connection on the... |
|
|
All times are GMT. The time now is 04:37 PM. | Privacy Policy
|