Disable enable NIC with netsh command

Source: Internet
Author: User

Use the netsh command to disable the Enable nic. in the XP system, the netsh interface set interface name command extension is not supported. Therefore, this command cannot run normally, and ifmon Under 2003 is extracted. dll file overwrite, you can use it. When using netsh interface set interface "Local Connection" "disabled" in winxp, the following error message is displayed: Code: C: \> netsh interface set interface "Local Connection" "disabled" does not specify one or more key parameters. The syntax provided by this command is incorrect. View help to obtain correct syntax information. Use set interface [name =] IfName [[admin =] ENABLED | DISABLED [connect =] CONNECTED | DISCONNECTED [newname =] NewName] To set interface parameters. IfName-Interface Name admin-whether the interface is enabled (only for non-LAN ). Connect-whether to connect to the interface (only for non-LAN ). Newname-new name of the interface (used only for non-LAN ). Note:-in addition to the name, you must specify at least one option. -If connect = CONNECTED is specified, the interface is automatically enabled, even when the admin = DISABLED option is specified. ==================================== Replace ifmon under XP. dll step: But you can run C: \ WINDOWS \ system32 \ ifmon in win2003. copy the dll file to the winxp system to disable the NIC. Note the following before enabling the copy function. copy the dll file to C: \ WINDOWS \ system32 \ dllcache, replace the system file with C: \ WINDOWS \ system32, and replace the system file with C: \ WINDOWS \ system32, if the system prompts that the file has been modified and whether to restore it from the installation disk, select the file to keep the modification. After replacement, you can use the netsh command to disable it, enable the network card ======================================

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.