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