none
Rename website name & Application pool name, Identity

    Question

  • Hi,

    I've changed the following details in SharePoint 2010 Server:

    1. changed IIS web site name
    2. changed IIS application pool name
    3. changed IIS application pool identity from managed account to Network Service.

    After making the above changes, i'm not able to browse the SharePoint site.

    What changes i've to make for the SharePoint web application  through central administration or powershell?


    Anandhan.S

    Monday, July 30, 2012 4:22 PM

Answers

  • Hi,

    SharePoint maintains separate application pools in IIS & in SharePoint Content service.

    Changes done in IIS will not reflect in SharePoint, we have to follow the power shell scripts to reflect the changes.

    Changing application pool

    $webService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService 
    $pool = $webService.ApplicationPools["application pool name"] 
    $app = Get-SPWebApplication  http://server:port
    $app.ApplicationPool = $pool
    $app.Update()
    $app.ProvisionGlobally()

    IISReset

    Consolidate SharePoint 2010 Application Pools

    Changing application pool identity

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

    we can also change the identity through [Central Administration - Service Accounts]

    Changing the Web Application Pool Identity using Power Shell

    Rename web application

    $a=Get-SPWebApplication | where {$_.Name -match "Web application name"}
    $a.Name
    $a.Name="New web application name"
    $a.Update()

    Verification :- Get-SPWebApplication | where {$_.Name -match "Web application name"}

    Rename a web application in SharePoint 2010

    New application pool creation

    $webService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService 
    $pool = new SPApplicationPool("New Application pool name", $webService);
    $pool.CurrentIdentityType = IdentityType.NetworkService
    $pool.Update()
    $pool.Deploy();

    Anandhan.S

    Friday, August 24, 2012 9:29 AM
  • What you did is not supported.

    You'll generally just want to make a new Web Application the way you want it with a new App Pool using the service account you want to use.  Once you create the new WA, after detaching the content databases from your old WA, attach them to the new WA.  This is a pretty safe way to do it.


    http://sharepoint.nauplius.net

    Monday, July 30, 2012 4:33 PM

All replies

  • What you did is not supported.

    You'll generally just want to make a new Web Application the way you want it with a new App Pool using the service account you want to use.  Once you create the new WA, after detaching the content databases from your old WA, attach them to the new WA.  This is a pretty safe way to do it.


    http://sharepoint.nauplius.net

    Monday, July 30, 2012 4:33 PM
  • Hi,

    SharePoint maintains separate application pools in IIS & in SharePoint Content service.

    Changes done in IIS will not reflect in SharePoint, we have to follow the power shell scripts to reflect the changes.

    Changing application pool

    $webService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService 
    $pool = $webService.ApplicationPools["application pool name"] 
    $app = Get-SPWebApplication  http://server:port
    $app.ApplicationPool = $pool
    $app.Update()
    $app.ProvisionGlobally()

    IISReset

    Consolidate SharePoint 2010 Application Pools

    Changing application pool identity

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

    we can also change the identity through [Central Administration - Service Accounts]

    Changing the Web Application Pool Identity using Power Shell

    Rename web application

    $a=Get-SPWebApplication | where {$_.Name -match "Web application name"}
    $a.Name
    $a.Name="New web application name"
    $a.Update()

    Verification :- Get-SPWebApplication | where {$_.Name -match "Web application name"}

    Rename a web application in SharePoint 2010

    New application pool creation

    $webService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService 
    $pool = new SPApplicationPool("New Application pool name", $webService);
    $pool.CurrentIdentityType = IdentityType.NetworkService
    $pool.Update()
    $pool.Deploy();

    Anandhan.S

    Friday, August 24, 2012 9:29 AM