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

PowerShellMicrosoft TechnologiesSoftware & Coding

#### Powershell for beginners

15 Lectures 3.5 hours

#### Learning Task Automation using Windows PowerShell

35 Lectures 2.5 hours

#### The Complete PowerShell 7 course: Beginner To Advanced

Most Popular

145 Lectures 12.5 hours

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 13:37:43