How to import Application pool advance settings into xml

  application-pool,, iis, server, windows

I have multiple applications hosted on multiple app pools on my machine. I am trying to import advanced settings of all the app pools into an XML file. Does anyone know?

I tried the below command but it does not show all sections of advanced app pool settings

%windir%system32inetsrvappcmd list apppool /config /xml > c:apppools.xml

Source: Windows Questions