search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
Posted in Windows Powershell | No Comment | 1,194 views | 16/05/2015 13:48

These are IIS Application Pool Limits that you can get using CIM via PowerShell.

1
2
3
4
5
6
7
8
9
10
11
12
# WebSite AppPool Information
$WebSiteAppPools = Get-CimInstance -Namespace "root\MicrosoftIISv2" -ClassName "IIsApplicationPoolSetting" -OperationTimeoutSec 15 -EA Stop
 
$WebSiteAppPool = $WebSiteAppPools[0];
 
# IIS AppPool Limits Information
[string]$WebSiteAppPoolAppPoolState = $WebSiteAppPool.AppPoolState
[string]$WebSiteAppPoolCPUAction = $WebSiteAppPool.CPUAction
[string]$WebSiteAppPoolCPULimit = $WebSiteAppPool.CPULimit
[string]$WebSiteAppPoolCPUResetInterval = $WebSiteAppPool.CPUResetInterval
[string]$WebSiteAppPoolDisallowOverlappingRotation = $WebSiteAppPool.DisallowOverlappingRotation
[string]$WebSiteAppPoolDisallowRotationOnConfigChange = $WebSiteAppPool.DisallowRotationOnConfigChange

You can find more properties in my blog.