I have very limited experience with powershell and perhaps that is my main issue but i cannot find adequate examples on the web to help me craft the command needed to view the periodic restart memory settings for app pools on remote servers.
What i have so far gets me the names of all the app pools but no matter what i try after that i cannot get the actual settings.
Does anyone have any examples available that they can share?
Thank you for your time.
Here is a subset of the code i have so far:
$remoteAppPoolList = Get-WmiObject -Authentication PacketPrivacy -Impersonation Impersonate -ComputerName $server -namespace "root/MicrosoftIISv2" -class IIsApplicationPool foreach ($rPool in $remoteAppPoolList) { $temp = $rPool.Name.Split("/") if ($temp.length -gt 0) { $temp = $temp[$temp.length - 1] } #rest of the code to get the memory settings would need to go here. }