Deactivate or Uninstall Office Web Apps (installed on SharePoint 2010 Products)

 

Applies to: Word Web App Preview, PowerPoint Web App Preview, Excel Online

Topic Last Modified: 2011-06-22

Banner stating end of support date for Office 2010 with link to more info

This article contains information and procedures to deactivate or uninstall Microsoft Office Web Apps on Microsoft SharePoint 2010 Products on-premises in your organization. Office Web Apps are the online companions to Microsoft Word, Microsoft Excel, Microsoft PowerPoint, and Microsoft OneNote. Unless otherwise noted, SharePoint 2010 Products in this article refers to Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010.

You can successfully uninstall Office Web Apps by using Control Panel most of the time. However, after you have uninstalled Office Web Apps by using Control Panel, you might receive an error. For more information, see When you try to uninstall Office Web Apps, you receive an error that it has already been uninstalled.

You will also receive an error if you uninstall SharePoint Server 2010 but do not or cannot uninstall Office Web Apps, and then attempt to reinstall SharePoint Server 2010 on the same server. For more information, see When you attempt to reinstall SharePoint Server 2010 on a computer, you receive an error that there is a conflict with SharePoint 2010 Products that were previously installed.

Warning

When you install Office Web Apps on a server farm, it becomes tightly integrated into SharePoint 2010 Products.
When you uninstall Office Web Apps from a SharePoint 2010 Products server that is part of a farm, the following occurs:

  • All sites, including the Central Administration site, experience a loss in functionality until you have completely uninstalled Office Web Apps and then run the SharePoint Products Configuration Wizard on all servers in the farm

  • All Internet Information Services (IIS) Web applications and sites are removed from the server

  • The server is removed from the farm

  • Any customizations that you have made are removed and must be reapplied after you add the servers back to the farm. These customizations include, but are not limited to, the following:

    • Changes to the web.config file on Web front-end servers

    • Secure Sockets Layer (SSL) certificates that were added to Web front-end servers

    • Any features that you have deployed manually

If you do not want to experience any downtime or if you have significant customizations, you might prefer to deactivate Office Web Apps instead of uninstalling it.
If you deactivate Office Web Apps, you still must continue to apply all Office Web Apps–related updates to the servers in the farm because the Office Web Apps files remain on the servers.

In this article:

  • Deactivate Office Web Apps

  • Uninstall Office Web Apps from a stand-alone SharePoint 2010 Products server

  • Uninstall Office Web Apps from a SharePoint server farm

Deactivate Office Web Apps

The process to deactivate Office Web Apps is the same for either a stand-alone SharePoint 2010 Products server or a SharePoint 2010 Products server farm. You can deactivate the Office Web Apps feature on a single site collection either by using a browser to access and configure the Site collection features page or by using Windows PowerShell. If you have many site collections, we recommend that you deactivate the feature on all site collections at the same time by using Windows PowerShell.

To prevent site collection administrators from turning on the feature again, we recommend that you deactivate the feature, delete the service applications, and then stop the services.

Important

If you deactivate Office Web Apps, you still must continue to apply all Office Web Apps–related updates to the servers in the farm because the Office Web Apps files remain on the servers.

Perform all procedures in this section in the following order:

  1. Deactivate the Office Web Apps feature

  2. Enable the OpenInClient feature

  3. Delete the Office Web Apps service applications

  4. Stop the Office Web Apps services

Deactivate the Office Web Apps feature

To deactivate the Office Web Apps feature on a single site collection by using Site Settings

  1. Verify that the account that you use to perform this procedure is an administrator for the site collection.

  2. In a supported browser, open the SharePoint site, click Site Actions, and then click Site Settings.

  3. On the Site Settings page, in Site Collection Administration, click Site collection features.

  4. On the Features page, for Office Web Apps, click Deactivate.

To deactivate the Office Web Apps feature on a single site collection by using Windows PowerShell

  1. Verify that you meet the following minimum requirements: See Add-SPShellAdmin. Also verify that the account that you use to complete this procedure is a member of the Administrators group on the computer that is running Windows PowerShell and a member of the Farm Administrators SharePoint group.

  2. Copy the following code and paste it into a text editor, such as Notepad:

    $webAppsFeatureId = $(Get-SPFeature -limit all | where {$_.displayname -eq "OfficeWebApps"}).ID
    $singleSiteCollection = Get-SPSite -Identity <http://site_name>
    Disable-SPFeature $webAppsFeatureId -Url $singleSiteCollection.URL
    
  3. Replace the following placeholders with values where:

    <http://site_name> is the URL of the site collection

  4. Save the file, naming it Deactivate-WebApps.ps1.

    Note

    You can use a different file name. However, you must save the file as an ANSI-encoded text file that has the extension .ps1.

  5. Click Start, click All Programs, and then click Microsoft SharePoint 2010 Products.

  6. Right-click SharePoint 2010 Management Shell, and then click Run as administrator.

  7. Change to the directory where you saved the file.

  8. At the Windows PowerShell command prompt, type the following command:

    ./Deactivate-WebApps.ps1
    

To deactivate the Office Web Apps feature on all site collections by using Windows PowerShell

  1. Verify that you meet the following minimum requirements: See Add-SPShellAdmin. Also verify that the account that you use to complete this procedure is a member of the Administrators group on the computer that is running Windows PowerShell and a member of the Farm Administrators SharePoint group.

  2. Copy the following code and paste it into a text editor, such as Notepad:

    $webAppsFeatureId = $(Get-SPFeature -limit all | where {$_.displayname -eq "OfficeWebApps"}).ID
    Get-SPSite -limit ALL | foreach {Disable-SPFeature $webAppsFeatureId -url $_.URL}
    
  3. Save the file, naming it Deactivate-WebAppsAll.ps1.

    Note

    You can use a different file name. However, you must save the file as an ANSI-encoded text file that has the extension .ps1.

  4. Click Start, click All Programs, and then click Microsoft SharePoint 2010 Products.

  5. Right-click SharePoint 2010 Management Shell, and then click Run as administrator.

  6. Change to the directory where you saved the file.

  7. At the Windows PowerShell command prompt, type the following command:

    ./Deactivate-WebAppsAll.ps1
    

Enable the OpenInClient feature

To enable the OpenInClient feature on a single site collection by using Site Settings

  1. Verify that the account that you use to perform this procedure is an administrator for the site collection.

  2. In a supported browser, open the SharePoint site, click Site Actions, and then click Site Settings.

  3. On the Site Settings page, in Site Collection Administration, click Site collection features.

  4. On the Features page, for Open Documents in Client Applications by Default, click Activate.

To enable the OpenInClient feature on a single site collection by using Windows PowerShell

  1. Verify that you meet the following minimum requirements: See Add-SPShellAdmin. Also verify that the account that you use to perform this procedure is a member of the Administrators group on the computer that is running Windows PowerShell and is a member of the Farm Administrators SharePoint group.

  2. Copy the following code and paste it into a text editor, such as Notepad:

    $defaultOpenBehaviorFeatureId = $(Get-SPFeature -limit all | where {$_.displayname -eq "OpenInClient"}).ID
    Enable-SPFeature $defaultOpenBehaviorFeatureId -Url http://<site_name>
    
  3. Replace the following placeholders with values where:

    <http://site_name> is the URL of the site collection

  4. Save the file, naming it Activate-OpenInClient.ps1.

    Note

    You can use a different file name. However, you must save the file as an ANSI-encoded text file that has the extension .ps1.

  5. Click Start, click All Programs, and then click Microsoft SharePoint 2010 Products.

  6. Right-click SharePoint 2010 Management Shell, and then click Run as administrator.

  7. Change to the directory where you saved the file.

  8. At the Windows PowerShell command prompt, type the following command:

    ./Activate-OpenInClient.ps1
    

To enable the OpenInClient feature on all site collections by using Windows PowerShell

  1. Verify that you meet the following minimum requirements: See Add-SPShellAdmin. Also verify that the account that you use to perform this procedure is a member of the Administrators group on the computer that is running Windows PowerShell, and is an administrator for all site collections or a member of the Farm Administrators SharePoint group.

  2. Copy the following code and paste it into a text editor, such as Notepad:

    $defaultOpenBehaviorFeatureId = $(Get-SPFeature -limit all | where {$_.displayname -eq "OpenInClient"}).ID
    Get-SPSite -limit ALL |foreach{ Enable-SPFeature $defaultOpenBehaviorFeatureId -url $_.URL }
    
  3. Save the file, naming it Activate-OpenInClientAll.ps1.

    Note

    You can use a different file name. However, you must save the file as an ANSI-encoded text file that has the extension .ps1.

  4. Click Start, click All Programs, and then click Microsoft SharePoint 2010 Products.

  5. Right-click SharePoint 2010 Management Shell, and then click Run as administrator.

  6. Change to the directory where you saved the file.

  7. At the Windows PowerShell command prompt, type the following command:

    ./Activate-OpenInClientAll.ps1
    

Delete the Office Web Apps service applications

To delete the Office Web Apps service applications by using Central Administration

  1. Verify that the account that you use to perform this procedure is a member of the Farm Administrators SharePoint group.

  2. On the Central Administration Web site, in Application Management, click Manage service applications.

  3. On the Manage Service Applications page, in the Type column, click PowerPoint Service Application, and then, on the ribbon, click Delete.

  4. In the Delete Service Application dialog box, leave the Delete data associated with the Service Applications check box cleared, and then click OK two times.

  5. Repeat these steps to delete the Word Viewing Service Application.

    Note

    By default, on a server that is running SharePoint Server 2010 Enterprise and hosts the Central Administration Web site, the Excel Calculation Services service application is created and activated even if Office Web Apps is not installed on the server. Because you might want to enable users to open Excel documents in the browser after you have disabled Office Web Apps, we recommend that you do not delete the Excel Calculation Services service application unless it is a service application that you created when you installed Office Web Apps.

To delete the Office Web Apps service applications by using Windows PowerShell

  1. Verify that you meet the following minimum requirements: See Add-SPShellAdmin. Also verify that the account that you use to perform this procedure is a member of the Farm Administrators SharePoint group.

  2. On the Start menu, click All Programs, and then click Microsoft SharePoint 2010 Products.

  3. Right-click SharePoint 2010 Management Shell, and then click Run as administrator.

  4. At the Windows PowerShell command prompt, type the following commands:

    • To retrieve the service application that you want to delete, type the following command.

      $spapp = Get-SPServiceApplication -Name "<Service application display name>"
      

      Where <Service application display name> is the display name of the service application that you want to delete.

      The service application information is stored in the $spapp variable.

      Important

      You must type the display name enclosed in quotation marks, and what you type must exactly match the service application display name. This includes capitalization. We strongly recommend that you do not create multiple service applications that have the same display name — if you do have this situation, you can use the Get-SPServiceApplication cmdlet to list all service applications. You can then use the service application GUID (Id) together with the –Identity parameter to specify the service application that you want to delete. For more information, see Get-SPServiceApplication.

    • To delete the selected service application, run the following command.

      Remove-SPServiceApplication $spapp
      

    Note

    By default, on a server that is running SharePoint Server 2010 Enterprise and hosts the Central Administration Web site, the Excel Calculation Services service application is created and activated even if Office Web Apps is not installed on the server. Because you might want to enable users to open and edit Excel documents in the browser at some point after you have disabled Office Web Apps, we recommend that you do not delete the Excel Calculation Services service application.

Stop the Office Web Apps services

To stop a service by using Central Administration

  1. Verify that the account that you use to perform this procedure is a member of the Farm Administrators SharePoint group.

  2. On the Central Administration Web site, click System Settings.

  3. On the System Settings page, in the Servers section, click Manage services on server.

  4. To select the server on which you want to stop the service, on the Server menu, click Change Server, and then click the server name that you want.

  5. For the PowerPoint Service, in the Action column, click Stop, and then click OK in the confirmation dialog box.

  6. For the Word Viewing Service, in the Action column, click Stop, and then click OK in the confirmation dialog box.

    Note

    By default, on a server that is running SharePoint Server 2010 Enterprise and hosts the Central Administration Web site, the Excel Calculation Services service is started even if Office Web Apps is not installed on the server. Because you might want to enable users to open Excel documents in the browser after you have disabled Office Web Apps, we recommend that you do not stop the Excel Calculation Services service.

  7. Repeat these steps for each server in the farm.

To stop a service by using Windows PowerShell

  1. Verify that you meet the following minimum requirements: See Add-SPShellAdmin. Also verify that the account that you use to perform this procedure is a member of the Administrators group on the computer that is running Windows PowerShell and a member of the Farm Administrators SharePoint group.

  2. Click Start, click All Programs, and then click Microsoft SharePoint 2010 Products.

  3. Right-click SharePoint 2010 Management Shell, and then click Run as administrator.

  4. At the Windows PowerShell command prompt, type the following command:

    Stop-SPServiceInstance -Identity <ServiceGUID>
    

    Where <ServiceGUID> is the GUID of the service. To retrieve a list of all services that are running in the farm together with their GUIDs, type the following command:

    Get-SPServiceInstance | where {$_.Status -eq "Online"}
    

    For more information, see Stop-SPServiceInstance.

Uninstall Office Web Apps from a stand-alone SharePoint 2010 Products server

Use the procedure in this section to uninstall Office Web Apps from a stand-alone SharePoint 2010 Products server only.

To uninstall Office Web Apps from a stand-alone SharePoint 2010 Products server

  1. Click Start, click Control Panel, and then click Uninstall a program.

  2. In the program list, select Microsoft Office Web Apps, and then click Uninstall.

  3. In the dialog box that notifies you that Office Web Apps will be removed, click Yes, and then in the warning dialog box, click OK.

  4. After you have uninstalled Office Web Apps, you must run the SharePoint Products Configuration Wizard. To start the wizard, click Start, click All Programs, click Microsoft SharePoint 2010 Products, and then click SharePoint 2010 Products Configuration Wizard.

  5. On the Welcome to SharePoint Products page, click Next.

  6. In the dialog box that notifies you that some services might have to be started or reset during configuration, click Yes to begin the configuration.

  7. On the Configuration Successful page, click Finish.

Uninstall Office Web Apps from a SharePoint server farm

Use the procedures in this section to uninstall Office Web Apps from a SharePoint 2010 Products server farm only. You must perform these procedures on every server in the farm.

Important

Before you uninstall Office Web Apps from a farm, ensure that you gather the following important information, which you must have to add the SharePoint 2010 Products servers back to the farm after you have uninstalled Office Web Apps.

  • The port number of your Central Administration Web application

    To determine the port number, on the Central Administration Web site, click Manage web applications. Note the port number for the SharePoint Central Administration v4 Currently Selected Web application.

  • The name of your server farm's configuration database

    To determine the configuration database name, on the Central Administration Web site, click System Settings, and then click Manage servers in this farm. Note the configuration database name in the Farm Information section.

  • The servers in your farm that host the Central Administration Web application

    To determine which servers host the Central Administration Web application, on the Central Administration Web site, click System Settings, and then click Manage servers in this farm. In the Services Running column, note which servers are running the Central Administration service.

  • The passphrase for your server farm

    Your farm's passphrase is not stored in a viewable format. Therefore, you cannot retrieve it from the configuration database. If you have forgotten your passphrase, you can reset it by using the Set-SPPassPhrase cmdlet.

  • The default Internet Information Services (IIS) authentication type that your farm uses, either Windows Challenge/Response (NTLM) or Negotiate (Kerberos)

    To determine the default kind of authentication that your farm uses, on the Central Administration Web site, click Security, and then click Specify authentication providers. On the Authentication Providers page, click the Web Application button, click Change Web Application, click SharePoint Central Administration v4, and then click Default. On the Edit Authentication page, in the IIS Authentication Settings area, note the authentication type.

To uninstall Office Web Apps from a SharePoint 2010 Products server farm

  1. Click Start, click Control Panel, and then click Uninstall a program.

  2. In the program list, select Microsoft Office Web Apps, and then click Uninstall.

  3. In the dialog box that notifies you that Office Web Apps will be removed, click Yes, and then, in the warning dialog box, click OK.

  4. You must repeat this procedure on each server in the farm before you continue to the next procedure.

To run the SharePoint Products Configuration Wizard

  1. After you have uninstalled Office Web Apps on all servers in your farm, you must run the SharePoint Products Configuration Wizard on each server. To start the wizard, click Start, click All Programs, click Microsoft SharePoint 2010 Products, and then click SharePoint 2010 Products Configuration Wizard.

    Important

    Run the SharePoint Products Configuration Wizard first on a server that you want to be the default host for the Central Administration Web application. On successive servers, one of the following will occur:

    • By default, if the server previously hosted the Central Administration Web application, it will host it when you rejoin the server to the farm.

    • If the server did not host the Central Administration Web application previously, you will have the option to host it or not when you rejoin the server to the farm.

  2. On the Welcome to SharePoint Products page, click Next.

  3. In the dialog box that notifies you that some services might have to be started or reset during configuration, click Yes to begin the configuration.

  4. On the Connect to a server farm page, click Connect to an existing server farm, and then click Next.

  5. On the Specify Configuration Database Settings page, do the following:

    1. In the Database server box, type the name of the computer that is running SQL Server, and then click Retrieve Database Names.

    2. In the Database name box, select the appropriate database from the list or type the name of your server farm's configuration database, and then click Next.

      Important

      If the server running SQL Server that you specify hosts more than one configuration database and you select the wrong database for your farm, after you click Next, the Server Farm Product and Patch Status page might appear and indicate that server farm products are missing. Click Back to select the correct database.

  6. On the Specify Farm Security Settings page, type the passphrase for your server farm, and then click Next.

  7. On the Configure SharePoint Central Administration Web Application page, do the following:

    1. Select the Specify port number check box, and then type the port number for your farm.

      Important

      You must use the same port number that you used when you originally created the server farm. If you use a different port, the URLs will change for the SharePoint Central Administration Web sites, which will break the links on the Start menu on all servers and break any desktop icons or other shortcuts to the SharePoint Central Administration Web site that you previously created.

    2. Click either NTLM or Negotiate (Kerberos), and then click Next.

      Important

      We recommend that you use the same authentication provider that you used when you created the server farm. If you want to change the authentication provider from NTLM to Negotiate (Kerberos), there are additional configuration steps required. For more information, see Plan for Kerberos authentication (SharePoint Server 2010) or Plan for Kerberos authentication (SharePoint Foundation 2010).

  8. On the Completing the SharePoint Products Configuration Wizard page, review the configuration settings, and then do one of the following:

    • If you are running the wizard to add the first server back to the farm, click Next to begin the configuration.

      Important

      Run the SharePoint Products Configuration Wizard first on a server that you want to host the Central Administration Web application. On successive servers, you can decide whether the server should host the Central Administration Web application or not.

    • If you are adding an additional server back to the farm and want to use the server to host the Central Administration Web application, click Advanced Settings, and then click Use this machine to host the web site.

      Note

      If you are adding additional servers back to an existing farm, the default setting is Do not use this machine to host the web site.

  9. On the Configuration Successful page, click Finish.

    Note

    You do not have to run the Farm Configuration Wizard again.