【发布时间】:2020-04-25 16:49:25
【问题描述】:
在运行 powershell 脚本时,我收到以下错误:
提供错误:
The 'New-SmbMapping' command was found in the module 'SmbShare', but the module could not be loaded. For more information, run 'Import-Module SmbShare'.
但是,SMB-Share 已经存在于系统中,如果直接在控制台中调用 Get-SmbShare、Remove-SmbShare、New-SMBShare,则可以正常工作。
[注意] Powershell 信息:
1)Running Powershell version as administrator: Major:5 Minor:1 Build:18362 Revision:752
2)Running the code in windows 10 pro.
【问题讨论】:
标签: powershell windows-10 azure-powershell powershell-5.0 windows-scripting