title: Creating a share and granting permissions via cmd.exe and net share
body: <p>I am trying to create a share on a Windows Server 2008.</p>
  
  <p>I can do it fine via the GUI and everything works like a charm.</p>
  
  <p>But when I try to do it via the command prompt (I need the command prompt for a FinalBuilder WMI action step), nothing happens.</p>
  
  <p>I use the command:</p>
  
  <pre><code>C:\&gt;net share MyShare=d:\MyShareFolder /grant:Everyone,FULL
  </code></pre>
  
  <p>It returns a message like "Share was created", and it is indeed created - but the permissions are not applied.</p>
  
  <p>I originally tried to grant a specific user to the share, but this also fails. The command was this:</p>
  
  <pre><code>C:\&gt;net share MyShare=d:\MyShareFolder /grant:domain\myuser,FULL
  </code></pre>
  
  <p>I also tried to use double-quotes around the domain\user-specification, but same result.</p>
  
  <p>There must be something that I am missing - but what is it?</p>
  
  <p>Thanks,</p>
  
  <p>/Jesper</p>