none
Powershell or VBscript to print all application pool settings, child-items, and sub-items RRS feed

  • Question

  • I've been asked to create a script that will list out all the configuration details for application pools on a set of servers so that the complete configuration is captured after deployments, changes, etc.  

    So far Powershell is giving me the "microsoft.iis.powershell.framework.configurationelement" output for most of the sub-items of the child-items of app pool configuration.  Does anyone already have a script that gets around this problem and still lists out all the settings and values in a neat and easy to read format? 

    Thanks!

    Monday, September 25, 2017 10:46 PM

Answers

  • This is easier:

    $env:windir\system32\inetsrv\appcmd list apppool /config /xml > c:\apppools.xml

    It also gives you XML which can be imported to the server or site.

    For IIS specific issues you would do netter to post in the IIS forums: http://forums.iis.net which is the official MS site for IIS support issues.


    \_(ツ)_/

    • Marked as answer by RickyRic Thursday, September 28, 2017 10:21 PM
    Tuesday, September 26, 2017 2:28 AM

All replies

  • What is your code that is causing this?


    \_(ツ)_/

    Monday, September 25, 2017 11:10 PM
  • Wouldn't it be better to export the configuration.


    \_(ツ)_/

    Monday, September 25, 2017 11:11 PM
  • How would you export the configuration settings? 

    Thanks, 

    Ric

    Tuesday, September 26, 2017 2:18 AM
  • Import-Module WebAdministration

    Get-ItemProperty IIS:\AppPools\* | Select * | Export-Csv (filepath)

    Tuesday, September 26, 2017 2:21 AM
  • This is easier:

    $env:windir\system32\inetsrv\appcmd list apppool /config /xml > c:\apppools.xml

    It also gives you XML which can be imported to the server or site.

    For IIS specific issues you would do netter to post in the IIS forums: http://forums.iis.net which is the official MS site for IIS support issues.


    \_(ツ)_/

    • Marked as answer by RickyRic Thursday, September 28, 2017 10:21 PM
    Tuesday, September 26, 2017 2:28 AM