.net - Change IIS PreloadEnable to True Globally -


i have vendor application uninstall , reinstall application in iis. each time, need reinstate preload settings through command below after installation has completed:

appcmd set app "<site>/<sub_site>" /preloadenabled:true 

this because default value preloadenabled "false". however, looking @ way change default values "preloadenabled" true not need execute above command. advice me how so?

i using iis 8.5

i managed find solution this. modify default value via configuration editor under system.applicationhost/sites path.

sample command:

appcmd set config -section:system.applicationhost/sites "/[name='<site>'].applicationdefaults.preloadenabled:true" /commit:apphost 

replace <site> accordingly.


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -