Quantcast
Channel: File Services and Storage forum
Viewing all articles
Browse latest Browse all 10672

Powershell v3 installed, but am still getting error for an unrecognized cmdlet

$
0
0

I am trying to script share's to be created via powershell(v3), and am running below

--------------------------------------------------------------------------------------------------------------------------------------------------
New-
SMBShare –Name “Temp$” –Path “G:\Temp” –ContinuouslyAvailable –FullAccess gb001sf0007\administrators -ReadAccess “domain\authenticated users”
--------------------------------------------------------------------------------------------------------------------------------------------------

but keep getting this error

 --------------------------------------------------------------------------------------------------------------------------------------------------

The term 'new-smbshare' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of 
the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:13
+ new-smbshare <<<< 
    + CategoryInfo          : ObjectNotFound: (new-smbshare:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

--------------------------------------------------------------------------------------------------------------------------------------------------

please help, thanks in advance



Amit



Viewing all articles
Browse latest Browse all 10672

Trending Articles



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