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

Badges
MCSE
Community

Cozumpark Bilisim Portali
Getting IIS Application Pools Process Information via PowerShell using CIM
Posted in Windows Powershell | No Comment | 1,139 views | 28/07/2015 17:51

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# WebSite AppPool Information
$WebSiteAppPools = Get-CimInstance -Namespace "root\MicrosoftIISv2" -ClassName "IIsApplicationPoolSetting" -OperationTimeoutSec 15 -EA Stop
 
$WebSiteAppPool = $WebSiteAppPools[0];
 
# IIS AppPool Process Information
[string]$WebSiteAppPoolEnable32BitAppOnWin64 = $WebSiteAppPool.Enable32BitAppOnWin64
[string]$WebSiteAppPoolIdleTimeout = $WebSiteAppPool.IdleTimeout
[string]$WebSiteAppPoolLoadBalancerCapabilities = $WebSiteAppPool.LoadBalancerCapabilities
[string]$WebSiteAppPoolLogEventOnRecycle = $WebSiteAppPool.LogEventOnRecycle
[string]$WebSiteAppPoolLogonMethod = $WebSiteAppPool.LogonMethod
[string]$WebSiteAppPoolManagedPipelineMode = $WebSiteAppPool.ManagedPipelineMode
[string]$WebSiteAppPoolManagedRuntimeVersion = $WebSiteAppPool.ManagedRuntimeVersion
[string]$WebSiteAppPoolMaxProcesses = $WebSiteAppPool.MaxProcesses

You can find more properties in my blog.



Leave a Reply