Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How do I enable my network connection using command prompt?

I've tried:

netsh interface set interface "Local Area Connection" ENABLE

But received this error:

An interface with this name is not registered with the router.

I know how to disable my network connection using ipconfig/release but when I try ipconfig/renew using command prompt it doesn't seem to be working either.

share|improve this question

migrated from stackoverflow.com Jun 7 '12 at 0:30

This question came from our site for professional and enthusiast programmers.

1 Answer 1

By using WMIC

wmic path win32_networkadapter where index=7 call disable

where 7 is the network interface index number. You can find it by using:

wmic nic get name, index


share|improve this answer
Doesn't work for me. –  Shimmy Mar 31 at 5:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.