Activate the Office Web Apps Feature on site collections
Applies to: Word Web App Preview, PowerPoint Web App Preview, Excel Online
Topic Last Modified: 2011-08-05
The information in this article on how to activate the Microsoft Office Web Apps Feature on site collections is intended for IT pros who maintain Office Web Apps installed on Microsoft SharePoint 2010 Products on a stand-alone server or a server farm. SharePoint 2010 Products in this article refers to Microsoft SharePoint Server 2010 and Microsoft SharePoint Foundation 2010 unless otherwise noted.
Activate the Office Web Apps Feature for a site collection
The Office Web Apps Feature should be activated on every site collection for which any of the Web apps will be available. Typically, you activate the Office Web Apps Feature on a site collection during the deployment phase after you run setup and activate the services; however, in some cases, you can decide to later activate only on particular site collections and deactivate on other site collections.
Important
Office Web Apps will not work for documents in Information Rights Management (IRM) protected libraries. For IRM-protected document libraries, we recommend that the Default open behavior for browser enabled documents setting be configured to open in the client application. For more information about how to configure the default open behavior, see Configure the default open behavior for browser-enabled documents (Office Web Apps).
Procedures in this task:
To activate the Office Web Apps Feature on all site collections by using Windows PowerShell
To activate the Office Web Apps Feature on a site collection on the Site collection features page
To activate the Office Web Apps Feature on a single site collection by using Windows PowerShell
To deactivate the Office Web Apps Feature on a single site collection by using Windows PowerShell
Some procedures in this task require using Windows PowerShell or SharePoint 2010 Management Shell to run cmdlets. To run SharePoint 2010 cmdlets in Windows PowerShell, you must add the Microsoft.SharePoint.PowerShell snap-in by using the Add-PSSnapin cmdlet, or you can run the SharePoint 2010 cmdlets by using SharePoint 2010 Management Shell. By default, the Microsoft.SharePoint.PowerShell snap-in is already registered, and the snap-in is added to the SharePoint 2010 Management Shell. To run SharePoint 2010 cmdlets, you must be a member of the SharePoint_Shell_Access role on the configuration database and a member of the WSS_ADMIN_WPG local group on the computer where SharePoint 2010 Products is installed. To run scripts in Windows PowerShell or SharePoint 2010 Management Shell, you must set the execution policy by using the set-executionpolicy cmdlet, using the unrestricted parameter. For more information about the Add-PSSnapin cmdlet, see Add-PSSnapin. For more information about how to use Windows PowerShell with SharePoint 2010 Products, see SharePoint 2010 Products administration by using Windows PowerShell.
To activate the Office Web Apps Feature on all site collections by using Windows PowerShell
Using Notepad, open a new a text file and then copy and paste the following script into the file.
$webAppsFeatureId = $(Get-SPFeature -limit all | where {$_.displayname -eq "OfficeWebApps"}).Id Get-SPSite -limit ALL |foreach{Enable-SPFeature $webAppsFeatureId -url $_.URL }
Save the file with a .ps1 file name extension to a folder where you run scripts (typically C:\scripts).
From the Windows PowerShell command prompt (that is, PS C:\>), type the following command and press ENTER:
C:\<path>\<filename>.ps1
To activate the Office Web Apps Feature on a site collection on the Site collection features page
In a browser, in 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 Activate.
To activate the Office Web Apps Feature on a single site collection by using Windows PowerShell
Using Notepad, open a new text file and then copy and paste the following script into the file.
$webAppsFeatureId = $(Get-SPFeature -limit all | where {$_.displayname -eq "OfficeWebApps"}).Id $singleSiteCollection = Get-SPSite -Identity http://<site_name> Enable-SPFeature $webAppsFeatureId -Url $singleSiteCollection.URL
Specify the following parameters:
Parameter Value –Identity
URL
Save the file with a .ps1 file name extension to a folder where you run scripts (typically C:\scripts).
In the Windows PowerShell console, at the command prompt (that is, PS C:\>), type the following command and press ENTER:
C:\<path>\<filename>.ps1
To deactivate the Office Web Apps Feature on a single site collection by using Windows PowerShell
Using Notepad, open a new text file and then copy and paste the following script into the file.
$webAppsFeatureId = $(Get-SPFeature -limit all | where {$_.displayname -eq "OfficeWebApps"}).Id $singleSiteCollection = Get-SPSite -Identity http://<site_name> Disable-SPFeature $webAppsFeatureId -Url $singleSiteCollection.URL
Specify the following parameters:
Parameter Value –Identity
URL
Save the file with a .ps1 file name extension to a folder where you run scripts (typically C:\scripts).
In the Windows PowerShell console, at the command prompt (that is, PS C:\>), type the following command and press ENTER:
C:\<path>\<filename>.ps1