How to get the IIS Application Pool queue length using PowerShell?

From the GUI, to retrieve the Application Pool queue length you need to check the Advanced Settings of the Application Pool.

To get the IIS application Pool queue length using PowerShell, first, we need to the application pool name. There are two ways (and maybe others) to retrieve once we have the name of the application pool.

For example, we need to retrieve the queue length for the application pool DefaultAppPool.

(Get-IISAppPool -Name DefaultAppPool).queuelength

To run the above command, you need the IISAdministration Module. You can also use the IIS PS drive but for that WebAdministration module should be loaded.

(Get-ItemProperty IIS:\AppPools\DefaultAppPool).queuelength

Updated on: 28-Apr-2021


Kickstart Your Career

Get certified by completing the course

Get Started