Hi All,
I am a newbie here.
I would need your help in order to parse "$" character within new-smbshare outlet cmd, here my example:
New-SmbShare -name "hello$" -Description 'test_hello' -Path 'C:\temp' -ScopeName 'test_3'
I tried with escape and simple quote character, not matter what, it still gives me the same error
if i remove $ character it works as a charm...
i get the following error:
PS C:\WINDOWS\system32> New-SmbShare -name "hello$" -Description 'test_hello' -Path 'C:\temp' -ScopeName 'test_3'
New-SmbShare : The parameter is incorrect.
At line:1 char:1
+ New-SmbShare -name "hello$" -Description 'test_hello' -Path 'C:\temp ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (MSFT_SMBShare:ROOT/Microsoft/Windows/SMB/MSFT_SMBShare) [New-SmbShare]
, CimException
+ FullyQualifiedErrorId : Windows System Error 87,New-SmbShare
+ CategoryInfo : InvalidArgument: (:) [New-SmbShare], ParameterBindingException
+ FullyQualifiedErrorId : MissingArgument,New-SmbShare
thank you in Advance
Will.