Ed Pollnac
Ed Pollnac

Reputation: 121

How do I set the application pool disk space limit in IIS Manager in Compression using PowerShell or appcmd?

I I'm able to disable dynamic and static content using "appcmd", but cannot set "Per application pool disk space limit"!

I'm able to disable dynamic and static content using "appcmd", but cannot set "Per application pool disk space limit"!

Upvotes: -1

Views: 468

Answers (1)

samwu
samwu

Reputation: 5215

I found that setting the value of Per application pool disk space limit in the iis server level corresponds to maxDiskSpaceUsage in the applicationHost file, so you can try to modify maxDiskSpaceUsage by below appcmd:

<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files" maxDiskSpaceUsage="999">


c:\windows\system32\inetsrv\appcmd set config /section:httpCompression /maxDiskSpaceUsage:999

More information you can refer to this link: Use Appcmd to set IIS compression level.

Upvotes: 1

Related Questions