user3453346
user3453346

Reputation: 21

How to change website limits in IIS with powershell

I need to change the website maxurlsegments, which is a parameter in advanced settings -> limits -> maximum url segments, with powershell to continue automating the deployment of webservers.

Upvotes: 1

Views: 2160

Answers (1)

Martin Brandl
Martin Brandl

Reputation: 58991

Example for set the value to 33 for the Default Web Site:

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

Upvotes: 1

Related Questions