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