title: Can I enable/disable a network connection from the command-line or MS-Dos?
body: <p>I want to enable/disable a network connection from the command-line in Windows 8.</p>
  
  <pre><code>netsh interface set interface “Local Area Connection” DISABLED 
  </code></pre>
  
  <p>To enable the interface, you'd then run: </p>
  
  <pre><code>netsh interface set interface “Local Area Connection” ENABLED 
  </code></pre>
  
  <p>When I try this, it generates an error message which states that "no more data is available".</p>