Created
November 17, 2020 19:46
-
-
Save markjfletcher/d61be8d9b460eb430e06c9a3d2caef60 to your computer and use it in GitHub Desktop.
Using IISAdministration Powershell Module to change an Application Pool
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module IISAdministration | |
$timeSpan = New-TimeSpan -Minutes 0 | |
$manager = Get-IISServerManager | |
$pool = $manager.ApplicationPools["$poolName"] | |
$pool.ChildElements["processModel"].Attributes["idleTimeout"].Value = $timeSpan | |
$manager.CommitChanges() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment