Thursday, July 10, 2014

Object not found when running the command “set-spserviceapplicationpool” for web application



Object not found when running the command “set-spserviceapplicationpool” for web application

 

Issue: Object not found error when running the command set-spserviceapplicationpool for web application

Cause: using the Set-SPServiceApplicationPool command we cannot change the application pool identity of a web application. The command only works to change the application pool identity for the service application in SharePoint.

Resolution: Follow the below power shell to change the identity of the Web Application pool

$WebApplicaiton = Get-SPWebApplication https://webapp:port
$ManagedAccount = Get-SPManagedAccount -Identity "domain\username"
$WebApplication.ApplicationPool.ManagedAccount = $ManagedAccount
$WebApplicaiton.ApplicationPool.Update();
$WebApplication.Update() 
  

I hope the above information will help you to resolve the issue, in case of any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues, Thank you.

No comments:

Post a Comment

Your feedback is Much Appreciated. I will try to reply to your queries as soon as possible!!Anil Avula

ShareThis

X