what is the new namespace name for IIsApplicationPool?


iis7, powershel 2.

i need set idle time-out

$apppool = get-wmiobject -class iisapplicationpoolsetting -namespace "root\microsoftiisv2" | where-object {$_.name -eq 'w3svc/apppools/defaultapppool'}

throws error:

get-wmiobject : invalid namespace 

what new namespace name iisapplicationpool?

to defaultapppool idle timeout value:

get-itemproperty iis:\apppools\defaultapppool -name processmodel.idletimeout.value

this returns timespan object.

to set defaultapppool idle timeout value 40 minutes:

set-itemproperty iis:\apppools\defaultapppool -name processmodel.idletimeout -value 0.00:40:00
need supply value in valid timespan format.



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Round Robin is killing performance on our network

WMI Repository 4GB limit - Win 2003 Ent Question

Change home folder default permission?