Quantcast
Channel: Windows Performance Toolkit forum
Viewing all articles
Browse latest Browse all 1161

Get app pool periodic restart memory settings on remote servers using powershell

$
0
0

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.

        }



Viewing all articles
Browse latest Browse all 1161


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>