title: Starting netsh wlan start hostednetwork needs administrator privilege to run
body: <p>I want to access the command prompt of windows and run a command that starts <code>hostnetwork</code>, I can start it by hand, but I try to run it through Java.</p>
  
  <p>This what I've tried </p>
  
  <pre><code>Process p = Runtime.getRuntime().exec("cmd /c netsh wlan start hostednetwork");
  </code></pre>
  
  <p>But It gives this message:</p>
  
  <blockquote>
    <p>You must run this command from a command prompt with administrator privilege. </p>
  </blockquote>
  
  <p>Any solution, or is there a better way to do that?</p>