Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

Setting Web Site RequestFiltering/RequestLimits/MaximumAllowedContentLength

$
0
0

I am trying to set the Maximum Allowed Content Length for a web site under IIS 7.5 using Powershell 2 or 3.  The only examples I have seen use appcmd ...  This is easy to do with the IIS Manager UI by selecting the web site, double-clicking the 'Request Filtering' icon in the IIS section of the Features view and invoking the 'Edit Feature Settings' action.  My need is to do this in a powershell script without relying on appcmd, if possible.

It seems that there should be a way to access and set this property but I have been unable to figure one or find one.  Any help or advice is much appreciated.

Thanks.


Viewing all articles
Browse latest Browse all 8583

Latest Images

Trending Articles



Latest Images