【发布时间】:2018-06-22 07:45:09
【问题描述】:
在门户中创建 Azure 文件共享并复制 PowerShell 脚本以将其连接为驱动器 Q:(已验证未使用)。回应:
New-PSDrive : The network resource type is not correct
At line:3 char:1
+ New-PSDrive -Name Q -PSProvider FileSystem -Root "\\xxxx.file.c ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Q:PSDriveInfo) [New-PSDrive], Win32Exception
+ FullyQualifiedErrorId : CouldNotMapNetworkDrive,Microsoft.PowerShell.Commands.NewPSDriveCommand
其中“xxxx”是共享名称。 PS 命令是直接从门户复制的,没有更改。
【问题讨论】:
-
您的 Windows\powershell 版本是什么?您可以通过
$PSVersionTable查找。我刚刚测试过,它对我有用。 -
PSVersion=5.1.15063.786;构建版本 10.0.15063.786; CLRVersion 4.0.30319.42000
-
docs.microsoft.com/en-us/azure/storage/files/… 很好支持,我不知道,尝试在新的 PS 会话中复制\粘贴。试试重启?
-
Fiddler 显示 400 响应,“请求的 URI 不代表服务器上的任何资源”
-
我想我找到了——康卡斯特不允许使用端口 445。
标签: azure azure-files