I have several server farms, one s Server 2008 R2and one s Server 2012 R2. After several search attempts, I found the following permissions to disable the default IIS application pool utility that I run on the permissions command line:
Set-ItemProperty IIS:\AppPools\Test -Name Recycling.PeriodicRestart.Time -Value 0
It seems to work fine (it works without output on any platform), but when I then try to query the value, on Server 2008 R2, I get the following:
PSPath : WebAdministration::\\SERVER1\AppPools\Test
PSParentPath : WebAdministration::\\SERVER1\AppPools
PSChildName : Test
PSDrive : IIS
PSProvider : WebAdministration
IsInheritedFromDefaultValue : False
IsProtected : False
Name : time
TypeName : System.TimeSpan
Schema : Microsoft.IIs.PowerShell.Framework.ConfigurationAttributeSchema
Value : 00:00:00
IsExtended : False
but on Server 2012 R2, I get the following:
PSPath : WebAdministration::\\SERVER2\AppPools\Test
PSParentPath : WebAdministration::\\SERVER2\AppPools
PSChildName : Test
PSDrive : IIS
PSProvider : WebAdministration
IsInheritedFromDefaultValue : True
IsProtected : False
Name : time
TypeName : System.TimeSpan
Schema : Microsoft.IIs.PowerShell.Framework.ConfigurationAttributeSchema
Value : 1.05:00:00
IsExtended : False
Note that Valuein the first example 00:00:00, but in the second example 1.05:00:00. This is the default value inherited from DefaultAppPool.
DefaultAppPool, - 2008 R2, 2012 R2, , .
Server 2012 R2, - , Server 2008 R2, Server 2012 R2?