Search code examples
batch-fileregistrywindows-xp

Enable Disable XP WIFi using command line


Help me out to, Enable and Disable WIFI in my XP using Command Line.

Tried with: netsh interface set interface name="Wireless Network Connection " admin=disabled but it is showing, More data to display.

Also, "netsh interface show interface" Does not display any Interface name.

Thanks in Advance.


Solution

  • That's command should work fine. Are you sure it's not disabled? is there really connection available with name Wireless Network Connection?

    In your command, try replacing Wireless Network Connection with actual connection name like Local Area Connection

    netsh interface set interface name="Local Area Connection" admin=disabled
    

    Also if below command is not displaying then I doubt, you have any network interface configured. Check to make sure that.

    netsh interface show interface
    

    You can as well use the below alternative way to enable/disable a specific connection [Quoted from MS Community Answer]

    Start elevated Command Prompt.

    Get NIC list and index number:

    wmic nic get name, index
    

    Enable NIC with index number: (eg: 7)

    wmic path win32_networkadapter where index=7 call enable
    

    Disable NIC with index number: (eg: 7)

    wmic path win32_networkadapter where index=7 call disable