I need a script to run on Vista Ultimate to share an external drive and assign full control to Everyone. I\'ve got a batch file to create the share using net share,
net share
As of WMF 4:
New-SmbShare –Name ShareName –Path C:\LocalFolder –FullAccess Username
http://technet.microsoft.com/en-us/library/jj635722.aspx