如何使用PowerShell更改IIS中的网站限制

时间:2015-07-29 09:09:31

标签: powershell iis configuration

我需要更改网站maxurlsegments,这是高级设置中的参数 - >限制 - >最大的url段,使用powershell继续自动部署Web服务器。

1 个答案:

答案 0 :(得分:1)

将默认网站的值设置为33的示例:

import-module WebAdministration
Set-ItemProperty -Path 'IIS:\Sites\Default Web Site' -Name limits.maxUrlSegments -Value 33