title: How to get the name and status of all IIS application pools in C#?
body: <p>I want to capture the all application pool name and its status in IIS. </p>
  
  <p>Planning to develop a windows service for getting the IIS Application Pool Name and Its Status i.e. Running Or Stopped. How can I achieve this? </p>
  
  <p>Please provide sample example if any.
  Appreciate any Help.
  Thanks..!</p>