I am trying to use PowerShell to query The advanced settings of Applicaiton pools in IIS7.5.
Via the GUI - Highlight the Application pool, click on Advanced Settings in the Action Pane.
I have tried to make use of the "webAdministration" module in powershell, but I either cannot find the correct function or syntax to use.
I can find the application pools under IIS:\AppPools* but I am not able to query each for its configuration / property settings / etc.
I am struggling to find any information on how to even query this information, any help is much appreciated.
preguntado el 30 de enero de 12 a las 19:01
Is this what you need (can't test it now, sorry)?
$Pool = New-Item IIS:\AppPools\MyAppPool $Pool.recycling.periodicRestart.time = [TimeSpan] "00:10:00" # this to set $Pool.recycling.periodicRestart.time # this to get