Deactivate or Uninstall Office Web Apps (installed on SharePoint 2010 Products)
Published: May 16, 2012
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.
Caution: |
|---|
| 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:
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
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:
Deactivate the Office Web Apps feature
To deactivate the Office Web Apps feature on a single site collection by using Site Settings
-
Verify that the account that you use to perform this procedure is an administrator for the site collection.
-
In a supported browser, open the SharePoint site, click Site Actions, and then click Site Settings.
-
On the Site Settings page, in Site Collection Administration, click Site collection features.
-
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
-
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.
-
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 -
Replace the following placeholders with values where:
<http://site_name> is the URL of the site collection
-
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.
-
Click Start, click All Programs, and then click Microsoft SharePoint 2010 Products.
-
Right-click SharePoint 2010 Management Shell, and then click Run as administrator.
-
Change to the directory where you saved the file.
-
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
-
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.
-
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} -
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.
-
Click Start, click All Programs, and then click Microsoft SharePoint 2010 Products.
-
Right-click SharePoint 2010 Management Shell, and then click Run as administrator.
-
Change to the directory where you saved the file.
-
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
-
Verify that the account that you use to perform this procedure is an administrator for the site collection.
-
In a supported browser, open the SharePoint site, click Site Actions, and then click Site Settings.
-
On the Site Settings page, in Site Collection Administration, click Site collection features.
-
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
-
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.
-
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> -
Replace the following placeholders with values where:
<http://site_name> is the URL of the site collection
-
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.
-
Click Start, click All Programs, and then click Microsoft SharePoint 2010 Products.
-
Right-click SharePoint 2010 Management Shell, and then click Run as administrator.
-
Change to the directory where you saved the file.
-
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
-
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.
-
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 } -
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.
-
Click Start, click All Programs, and then click Microsoft SharePoint 2010 Products.
-
Right-click SharePoint 2010 Management Shell, and then click Run as administrator.
-
Change to the directory where you saved the file.
-
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
-
Verify that the account that you use to perform this procedure is a member of the Farm Administrators SharePoint group.
-
On the Central Administration Web site, in Application Management, click Manage service applications.
-
On the Manage Service Applications page, in the Type column, click PowerPoint Service Application, and then, on the ribbon, click Delete.
-
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.
-
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
-
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.
-
On the Start menu, click All Programs, and then click Microsoft SharePoint 2010 Products.
-
Right-click SharePoint 2010 Management Shell, and then click Run as administrator.
-
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
-
Verify that the account that you use to perform this procedure is a member of the Farm Administrators SharePoint group.
-
On the Central Administration Web site, click System Settings.
-
On the System Settings page, in the Servers section, click Manage services on server.
-
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.
-
For the PowerPoint Service, in the Action column, click Stop, and then click OK in the confirmation dialog box.
-
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.
-
Repeat these steps for each server in the farm.
To stop a service by using Windows PowerShell
-
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.
-
Click Start, click All Programs, and then click Microsoft SharePoint 2010 Products.
-
Right-click SharePoint 2010 Management Shell, and then click Run as administrator.
-
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
-
Click Start, click Control Panel, and then click Uninstall a program.
-
In the program list, select Microsoft Office Web Apps, and then click Uninstall.
-
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.
-
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.
-
On the Welcome to SharePoint Products page, click Next.
-
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.
-
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.
|
To uninstall Office Web Apps from a SharePoint 2010 Products server farm
-
Click Start, click Control Panel, and then click Uninstall a program.
-
In the program list, select Microsoft Office Web Apps, and then click Uninstall.
-
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.
-
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
-
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.
-
-
On the Welcome to SharePoint Products page, click Next.
-
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.
-
On the Connect to a server farm page, click Connect to an existing server farm, and then click Next.
-
On the Specify Configuration Database Settings page, do the following:
-
In the Database server box, type the name of the computer that is running SQL Server, and then click Retrieve Database Names.
-
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.
-
-
On the Specify Farm Security Settings page, type the passphrase for your server farm, and then click Next.
-
On the Configure SharePoint Central Administration Web Application page, do the following:
-
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.
-
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).
-
-
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.
-
-
On the Configuration Successful page, click Finish.
Note: You do not have to run the Farm Configuration Wizard again.
Change History
| Date | Description |
|---|---|
| May 16, 2012 | Initial publication |
