【发布时间】:2018-02-15 23:04:28
【问题描述】:
我正在尝试使用以下 powershell 命令将我的 Web 项目文件夹作为虚拟目录添加到 IIS,但出现错误。想知道我是否遗漏了什么。谢谢。
PS C:\Users\Administrator> New-WebVirtualDirectory -name 'sy' -site 'sy site' -PhysicalPath 'C:\Projects\buoy'
New-WebVirtualDirectory : Parent node has no children of type virtualDirectory.
Parameter name: path
At line:1 char:1
+ New-WebVirtualDirectory -name 'sy' -site 'sy site' -PhysicalPath 'C:\ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [New-WebVirtualDirectory], ArgumentException
+ FullyQualifiedErrorId : Parent node has no children of type virtualDirectory.
Parameter name: path,Microsoft.IIs.PowerShell.Provider.NewVirtualDirectoryCommand
【问题讨论】:
标签: windows powershell iis windows-server-2016