How to Create new application pool and change App Pool of SharePoint Website

In OOTB SharePoint, you do not have anything which will allow you to create new application pools in IIS and assign them to applications. Also nothing was found in STSADM. If the application pool does not exist you can create it using the following code snippet: 1: SPFarm farm = SPFarm.Local; 2: SPWebService service =…

2