Reputation: 21
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
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