locked
Use PowerShell to display the properties of an App Pool RRS feed

  • Question

  • Hi

    I'm writing a script to deploy web applications from the TFS server to the web servers, along with creating the App Pools and such in IIS.  I need to know if there is a way that I can list the value of important properties of an App Pool, such as those found when selecting "Advanced Properties" on an App Pool through the IIS GUI, to the PowerShell console.  The Get-ItemProperty cmdlet doesn't seem to show much.

    Thanks in advance

    • Moved by Bill_Stewart Thursday, July 17, 2014 11:43 PM Off-topic post
    Thursday, June 19, 2014 9:49 AM

Answers

  • Here is a starter if you have PowerShell support installed:

    $pool= get-item iis:AppPools\DefaultAppPool
    $pool|gm

    You will see all of the methods used to manage the app pool listed.  For instructions on  how to use them you are best postingin the IIS forums.


    ¯\_(ツ)_/¯

    • Proposed as answer by jrv Thursday, July 17, 2014 11:56 PM
    • Marked as answer by Just Karl Monday, July 28, 2014 9:55 PM
    Thursday, June 19, 2014 11:29 AM

All replies

  • You should ask this question in the IIS forum for IIS administration.

    Yes - you can use PowerShell but you need to have the correct bits installed.

    Post here: http://forums.iis.net/


    ¯\_(ツ)_/¯

    Thursday, June 19, 2014 10:56 AM
  • Thanks, I'll have a look
    Thursday, June 19, 2014 11:07 AM
  • Here is a starter if you have PowerShell support installed:

    $pool= get-item iis:AppPools\DefaultAppPool
    $pool|gm

    You will see all of the methods used to manage the app pool listed.  For instructions on  how to use them you are best postingin the IIS forums.


    ¯\_(ツ)_/¯

    • Proposed as answer by jrv Thursday, July 17, 2014 11:56 PM
    • Marked as answer by Just Karl Monday, July 28, 2014 9:55 PM
    Thursday, June 19, 2014 11:29 AM
  • That seems to work quite well.  Perhaps I can find a way to expand it in some way to include more of the properties such as ManagedRuntimeVersion, and then work out how to configure each property.  Thanks for your help.


    Thursday, June 19, 2014 11:47 AM
  • $pool.managedRuntimeVersion


    ¯\_(ツ)_/¯

    Thursday, June 19, 2014 12:08 PM