title: Can't share Folder with Powershell
body: <p>I'm trying to create a share on a Folder with Powersherll but it just won't work and I don't know why. I'm trying to share it with this comand:</p>
  <pre><code>New-SmbShare -Name &quot;$($Username) Share&quot; -Path &quot;$($StandardPath)$($Username)\home\&quot; -ChangeAccess &quot;Labor\$($Username)&quot;
  </code></pre>
  <p>But I always get this error:</p>
  <pre><code>New-SmbShare : The system cannot find the file specified. 
  At C:\Users\ewzadmin\Desktop\AddADUsers.ps1:55 char:9
  +         New-SmbShare -Name &quot;$($Username) Share&quot; -Path &quot;$($StandardPat ...
  +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (MSFT_SMBShare:ROOT/Microsoft/Windows/SMB/MSFT_SMBShare) [New-SmbShare], CimException
      + FullyQualifiedErrorId : Windows System Error 2,New-SmbShare
  </code></pre>
  <p>I don't understand why he is trying to share a File when I want to share a Folder...</p>