Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 26858

Using Appcmd to set preloadEnabled=true

$
0
0

Hi Guys,

I need to set the following options in applicationhost.config for a given virtual application on a Windows 2008 R2 server,

AlwaysRunning = True

AutoStart = True

preloadEnabled = True

I am handling the first two settings with the command :

C:\windows\system32\inetsrv\APPCMD.exe set apppool testappPool /autoStart:true /startMode:AlwaysRunning

the last option I am having troubles setting, I believe I could get it set using appcmd set config, the closest I have got so far is :

.\appcmd.exe set config "testwebsite/testvdir" -section:system.applicationHost/sites /+"[preloadEnabled ='true']" /commit:apphost

but it throws the error:

ERROR ( message:Unknown attribute " preloadEnabled ". )

any help would be greatly appreciated.

Regards Alex


Viewing all articles
Browse latest Browse all 26858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>