PDA

View Full Version : Setting IIS Properties



eseilram
10-12-2011, 02:23 AM
Can anybody help me out?

I need to set the shutdownTimeLimit for an application pool for IIS6 and IIS7.

How can I do this?

Kind Regards!

jacafl
12-06-2011, 04:09 PM
Sorry to bump.

I'm having the same issue and was wondering if you'd come to a solution? I need to set a Private Memory Limit but that property isn't available in the Application Pool page.

eseilram
12-07-2011, 02:33 AM
Hi, yes I found a solution.
This is the custom action that works for IIS7. It sets the property for the application pool.

Dim ObjShell
Dim StrCommand
Dim windir

Set ObjShell = CreateObject("Wscript.Shell")
StrCommand = "cmd /c " + Session.Property("CustomActionData") + "system32\inetsrv\appcmd.exe set apppool SP-EXPERT-Applicationserver /processmodel.shutdownTimeLimit:00:06:00"
'MsgBox StrCommand
ObjShell.run StrCommand
set objShell = Nothing

For IIS6 I have another CA as this property must be set at the site.

If you need further assistance let me know.