Quantcast
Channel: File Services and Storage Forum
Viewing all articles
Browse latest Browse all 1766

How to create share names containing spaces with net share command in W2K12?

$
0
0

Hello,

For a File Server migration (W2K3 -> W2K12), I created a batch file in order to create hundreds of shares with the "net share" command in a Poweshell. Some of those shares are containing blanks in it and as strange as it is the same "net share" command using double quote and that was working perfectly in previous version aren't accepted in W2K12.

Example : net share "New Share"="U:\Test\" isn't working anymore because of a bad syntax.

It appears that the double quotes of the share name aren't recognized anymore.

What is my mistake? Any idea?

Thanks in advance,

Max


Viewing all articles
Browse latest Browse all 1766

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>