title: Powershell - Invoke-WmiMethod to create a Sharefolder remotely with full controle permission
body: <p>I've been using this script to create my users folders but I just find that the remote share folder is created with ReadOnly share. </p>
  
  <p>My question is how can I create the share folder with <code>$domainname\domain</code> users with <code>full control</code>?</p>
  
  <pre><code>Invoke-WmiMethod -Class win32_share -name Create -ArgumentList `
   @($null,"",100,"hideshare$","",e:\users\hideshare,0) -computername "DestinationSRV"
  </code></pre>
  
  <p>I've found many threads with answers but not with the method I use. </p>
  
  <p>Any ideas?</p>