Following is the PowerShell script I used to change current application pool identity to a different managed account.
- $web = Get-SPWebApplication "http://sp13"
- $account = Get-SPManagedAccount -Identity "dev\portalapppool"
- $web.ApplicationPool.ManagedAccount = $account
- $web.ApplicationPool.Update()
- $web.ApplicationPool.Deploy()
That’s all I had to do :)
I described how to change application pools for service applications in this article. It has answers to your questions like, “Why can’t I change the application pool identity directly from the IIS itself?”.
No comments:
Post a Comment