简体   繁体   English

在IIS7.5中使用Powershell设置启用父路径

[英]Set enable parent paths with Powershell in IIS7.5

I can't see how to enableParentPaths in IIS7.5 using Powershell. 我看不到如何使用Powershell在IIS7.5中启用ParentPaths。 I have tried the following, but I get a message saying enableParentPaths isn't a property. 我尝试了以下操作,但收到一条消息,说enableParentPaths不是属性。 What should the command be? 该命令应该是什么?

Set-WebConfigurationProperty '/system.applicationHost/sites/site[@name ="Default Web Site"]' 
-Name enableParentPaths -Value true

试试看:

Set-WebConfigurationProperty -PSPath MACHINE/WEBROOT/APPHOST -Location 'Default Web Site' -Filter system.webServer/asp -Name enableParentPaths -Value $true

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM