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:00need supply value in valid timespan format.
Windows Server > Windows PowerShell
Comments
Post a Comment