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

some help on Event 540

WMI Repository 4GB limit - Win 2003 Ent Question

Event ID 1302 (error 1307) DFS replication service encountered an error while writing to the debug log file