前提・実現したいこと
作成したフォルダを共有フォルダにする。
実行コマンドレット
以下のコマンドレットを実行
$SharedFolderName = "共有フォルダ名$" $SharedFolderPath = '\192.168.2.xx\d$\test\01' New-SmbShare –Name $SharedFolderName –Path $SharedFolderPath -FullAccess "everyone"
###発生している問題・エラーメッセージ
New-SmbShare : ファイル名、ディレクトリ名、またはボリューム ラベルの構文が間違っています。 発生場所 行:1 文字:1 + New-SmbShare –Name $SharedFolderName –Path $SharedFolderPath -FullAccess "every ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (MSFT_SMBShare:ROOT/Microsoft/Windows/SMB/MSFT_SMBShare) [New-SmbShare], C imException + FullyQualifiedErrorId : Windows System Error 123,New-SmbShare
参考元
http://tech.guitarrapc.com/entry/2013/07/08/230630
http://uranuxtech.blogspot.com/2014/07/powershell-to-make-smbshare.html
補足情報(FW/ツールのバージョンなど)
ターゲットサーバ Windows Server 2012 R2
名前空間サーバー Windows Server 2012 R2
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/07/06 00:18
2018/07/06 00:21
2018/07/06 00:44
2018/07/06 01:18