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

340 Views Asked by At

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"!

1

There are 1 best solutions below

2
samwu On

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.