SharePoint 2013 – Changing Application Pool Identities Using PowerShell
Each Application pool in SharePoint has an identity/account that it runs under. There are many scenarios where you may need to change the application pools to run under different credentials, and there are multiple ways you could possibly go about it.