Share via


Deploy Office Web Apps (Installed on SharePoint 2010 Products)

 

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

Learn about Microsoft Office Web Apps and how to deploy them 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 applications. Office Web Apps enable users to access documents from anywhere by using a Web browser. Users can view, share, and work on documents with other users online across personal computers and mobile devices.

Office Web Apps requires a supported device, an Internet connection, and a supported browser. Some mobile functionality requires Office Mobile 2010, which is not included in Office 2010 applications, suites, or Office Web Apps. There are some differences among the features of Office Web Apps, Office Mobile 2010, and the Office 2010 applications. For more information about Office Web Apps requirements, see Plan Office Web Apps (Installed on SharePoint 2010 Products).

Important

Do not install Office Web Apps on a computer that is configured as a domain controller. Instead, run Office Web Apps and the domain controller on separate computers. If you only have one computer, consider running Office Web Apps and the domain controller configuration as separate virtual machine instances on the single host computer, by using Hyper-V or other virtualization software.

Unless otherwise noted, SharePoint 2010 Products in this article refers to Microsoft SharePoint Server 2010 and Microsoft SharePoint Foundation 2010, which must be installed before you install Office Web Apps. This article does not provide guidance or instructions about how to deploy SharePoint 2010 Products. For more information about how to deploy SharePoint 2010 Products, see Deployment scenarios (SharePoint Server 2010) or Deployment scenarios (SharePoint Foundation 2010).

Before you deploy Office Web Apps in your organization, ensure that you understand the concepts and terminology in Office Web Apps overview (Installed on SharePoint 2010 Products) and Plan Office Web Apps (Installed on SharePoint 2010 Products).

Warning

When you install Office Web Apps on server farm, it becomes tightly integrated into SharePoint 2010 Products.
Before you install Office Web Apps on a server farm in a production environment, we strongly recommend that you install Office Web Apps in a test environment and thoroughly evaluate it to ensure that it fully meets your organization's needs. This evaluation should include verifying that you have appropriate licenses to install and run Office Web Apps in a production environment. For more information about Office Web Apps licensing, see How to buy Office 2010 through Volume Licensing (https://go.microsoft.com/fwlink/p/?LinkId=220251).
Uninstalling Office Web Apps will result in some downtime for the farm. For more information, see Deactivate or Uninstall Office Web Apps (installed on SharePoint 2010 Products).
To download Office Web Apps, go to the Office Professional Plus 2010 32-bit or Office Standard 2010 32-bit page on the Microsoft Volume Licensing Service Center (https://go.microsoft.com/fwlink/p/?LinkID=191841).

In this article:

  • Understanding Office Web Apps deployment

  • Deployment scenarios

Understanding Office Web Apps deployment

For stand-alone SharePoint 2010 Products servers and server farms, deploying Office Web Apps involves three phases:

Installing Office Web Apps   Includes running Setup.exe for the Office Web Apps on a stand-alone SharePoint 2010 Products server or on each server in a SharePoint server farm. Running Setup.exe installs Office Web Apps files and components on a server.

Activating the Office Web Apps services   Includes starting the services, and creating the service applications and service application proxies. How you activate the services depends on the state of your SharePoint 2010 Products installation before you install Office Web Apps. If the SharePoint Products Configuration Wizard and the SharePoint Farm Configuration Wizard have been previously run, which is usually the case when you are installing on an existing stand-alone server or server farm, you must activate the services manually or by using Windows PowerShell. If the configuration wizards have not been run before you install Office Web Apps, which is the case when you are installing on a new stand-alone server or server farm, you can run the configuration wizards after the installation to automatically activate the services.

Note

When this article refers to the SharePoint Products Configuration Wizard, alternately you can use the Psconfig command-line tool to complete the task. For more information, see Psconfig command-line reference (SharePoint Server 2010).

Activating the Office Web Apps feature   Includes activating the Office Web Apps feature on each existing SharePoint site collection where you want Office Web Apps to be available. If the SharePoint Farm Configuration Wizard was run before you installed Office Web Apps, the wizard will have created at least one site collection for which Office Web Apps are activated. After you have installed Office Web Apps, the Office Web Apps feature is activated automatically for new site collections that you create.

Some procedures in this article require you to run SharePoint 2010 cmdlets or scripts by using either Windows PowerShell or SharePoint 2010 Management Shell. To run SharePoint 2010 cmdlets in Windows PowerShell, you must add the Microsoft.SharePoint.PowerShell snap-in by using the Add-PSSnapin cmdlet. For more information about the Add-PSSnapin cmdlet, see Add-PSSnapin (https://go.microsoft.com/fwlink/p/?LinkId=188450). By default, the Microsoft.SharePoint.PowerShell snap-in is already registered and 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. See Add-SPShellAdmin. To run scripts in Windows PowerShell or SharePoint 2010 Management Shell, you must set the execution policy by using the set-executionpolicy cmdlet with the unrestricted parameter. For more information about how to use Windows PowerShell with SharePoint 2010 Products, see SharePoint 2010 Products administration by using Windows PowerShell.

Deployment scenarios

Based on your SharePoint 2010 Products installation type, choose the appropriate option to install and configure Office Web Apps:

  • Install and configure Office Web Apps on an existing stand-alone SharePoint 2010 Products server

  • Install and configure Office Web Apps on a new stand-alone SharePoint 2010 Products server

  • Install and configure Office Web Apps on an existing SharePoint server farm

  • Install and configure Office Web Apps on a new SharePoint server farm

Install and configure Office Web Apps on an existing stand-alone SharePoint 2010 Products server

Complete the procedures in this section only if you are installing Office Web Apps on an existing stand-alone SharePoint 2010 Products server on which the SharePoint Products Configuration Wizard has been previously run.

Note

To complete the following procedures, you must be a member of the Administrators group on the local computer.

Run Office Web Apps Setup

Complete this procedure to install Office Web Apps components and files on a server.

To run Office Web Apps Setup

  1. From the root folder of the Office Web Apps files, run Setup.exe.

  2. On the Enter your Product Key page, enter your product key, and then click Continue.

  3. On the Choose a file location page, do one of the following:

    • To install to the default location, click Install Now.

    • To install to a different location, specify the location that you want to install to, and then click Install Now.

  4. On the Run Configuration Wizard page, ensure that the Run the SharePoint Products Configuration Wizard now check box is selected, and then click Close to start the SharePoint Products Configuration Wizard.

Run the SharePoint Products Configuration Wizard to register the services

Complete this procedure to register the Office Web Apps services on the SharePoint 2010 Products server.

To run the SharePoint Products Configuration Wizard to register the services

  1. If you left the Run the SharePoint Products Configuration Wizard now check box selected in the previous procedure, the SharePoint Products Configuration Wizard will start. If the wizard does not start, click Start, click All Programs, click Microsoft SharePoint 2010 Products, and then click SharePoint Products Configuration Wizard.

  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 Configuration Successful page, click Finish.

Start the services

You must start the services before you create the service applications and the service application proxies. You can start the services by using Central Administration or by using Windows PowerShell.

Complete the procedures in this section to start the services on the server.

To start the services by using Central Administration

  1. On the Central Administration Web site, in System Settings, click Manage services on server.

  2. On the Services on Server page, for Excel Calculation Services, PowerPoint Service, and Word Viewing Service, click Start.

    Note

    On a server that is running SharePoint Server 2010 Enterprise, the Excel Calculation Services service is installed and started by default. The OneNote Web App does not require a SharePoint service.

To start the services 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.

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

    $machinesToActivate = @("<ServerName>")
    $serviceInstanceNames = @("Word Viewing Service", "PowerPoint Service", "Excel Calculation Services")
    foreach ($machine in $machinesToActivate)
    {
      foreach ($serviceInstance in $serviceInstanceNames)
      {
         $serviceID = $(Get-SPServiceInstance | where {$_.TypeName -match $serviceInstance}).ID
         Start-SPServiceInstance -Identity $serviceID
      }
    }
    
  3. Replace the following placeholders with values where:

    <ServerName> is the name of the SharePoint 2010 Products server on which you want to start the services.

  4. Save the file, naming it Start-WebAppSvcs.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:

    ./Start-WebAppSvcs.ps1
    

Create the service applications and the service application proxies

Note

You must start the services before you complete the procedures in this section.

After you have started the services, you must create the service applications and the service application proxies that connect the SharePoint Web front-end servers to the service applications. You can create the service applications and the service application proxies for the Word Web App, PowerPoint Web App, and Excel Web applications by using Central Administration or by using Windows PowerShell. After you create the service applications, they will automatically run on the services that you have started.

Note

On a server that is running SharePoint Server 2010 Enterprise, the Excel Calculation Services service application is created by default. The OneNote Web App does not require a service application.

Complete the procedures in this section to create the Office Web Apps service applications and service application proxies for the Excel Web App, PowerPoint Web App and Word Web App.

To create the service applications and the service application proxies by using Central Administration

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

  2. On the Manage Service Applications page, click New, and then click PowerPoint Service Application.

  3. In the PowerPoint Service Application dialog box, do the following:

    1. In the Name box, type PowerPoint Service Application or other descriptive name.

    2. In the Application Pool area, click Use existing application pool, and then in the list, select SharePoint Web Services Default.

    3. In the Add to default proxy list area, verify that the Add this service application's proxy to the farm's default proxy list check box is selected (default), and then click OK.

    Note

    When you create a new application pool, you can specify a security account that is used by the application pool to be either a predefined Network Service account or a managed account. The account must have db_datareader, db_datawriter, and execute permissions for the SharePoint configuration database, and be assigned to the db_owner role for the content databases. For more information about services account permissions in SharePoint 2010 Products, see Account permissions and security settings (SharePoint Server 2010).

  4. On the Service Applications page, click New, and then click Word Viewing Service.

  5. In the Word Viewing Service Application dialog box do the following:

    1. In the Name box, type Word Viewing Service Application or other descriptive name.

    2. In the Application Pool area, click Use existing application pool, and then in the list, select SharePoint Web Services Default.

    3. In the Add to default proxy list area, verify that the Add this service application's proxy to the farm's default proxy list check box is selected (default), and then click OK.

  6. On a server that is running SharePoint Server 2010 Enterprise, the Excel Calculation Services service application is created by default. If an Excel Calculation Services service application does not already exist, on the Manage Service Applications page, click New, and then click Excel Services Application.

  7. In the Create New Excel Services Application dialog box, do the following:

    1. In the Name box, type either Excel Services Application or another descriptive name.

    2. In the Application Pool area, do one of the following:

      • Click Use existing application pool, and then, in the list, click SharePoint Web Services Default.

      • Click Create new application pool, and then, in the Application pool name box, type the name that you want to use for the application pool, and then select a managed account from the Configurable list.

    3. In the Add to default proxy list area, either leave the Add this service application's proxy to the farm's default proxy list check box selected or clear it, and then click OK.

    Note

    You might have to refresh the Manage Service Applications page in your browser to see the new service applications and service application proxies.

To create the service applications and the service application proxies 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.

  2. On a computer that is running SharePoint Server 2010 Enterprise, the Excel Calculation Services service application is created by default. Copy the following code and paste it into a text editor, such as Notepad:

    $appPool = Get-SPServiceApplicationPool -Identity "SharePoint Web Services Default"
    New-SPWordViewingServiceApplication -Name "WdView" -ApplicationPool $appPool | New-SPWordViewingServiceApplicationProxy -Name "WdProxy"
    New-SPPowerPointServiceApplication -Name "PPT" -ApplicationPool $appPool | New-SPPowerPointServiceApplicationProxy -Name "PPTProxy" -AddToDefaultGroup
    

    If an Excel Calculation Services service application does not already exist, copy the following code and paste it into a text editor, such as Notepad:

    $appPool = Get-SPServiceApplicationPool -Identity "SharePoint Web Services Default"
    New-SPWordViewingServiceApplication -Name "WdView" -ApplicationPool $appPool | New-SPWordViewingServiceApplicationProxy -Name "WdProxy"
    New-SPPowerPointServiceApplication -Name "PPT" -ApplicationPool $appPool | New-SPPowerPointServiceApplicationProxy -Name "PPTProxy" -AddToDefaultGroup
    New-SPExcelServiceApplication -Name "Excel" -ApplicationPool $appPool
    

    Note

    This script uses the SharePoint Web Services Default application pool as an example. You can use another existing application pool or create a new one.

  3. Save the file, naming it Create-SrvAppsProx.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:

    ./Create-SrvAppsProx.ps1
    

Note

You might have to refresh the Manage Service Applications page in your browser to see the new service applications and service application proxies.

Activate the Office Web Apps feature

After the services have been started and the service applications and service application proxies have been created, you must enable the Office Web Apps feature on any existing site collections. You can enable the feature on a single site collection either by using the Site Settings page or by using Windows PowerShell. If you have many site collections, you can enable the feature on all existing site collections at the same time by using Windows PowerShell.

Note

You do not have to complete this procedure for new site collections that you create after you have installed Office Web Apps.

Complete the procedures in this section to enable the Office Web Apps feature on one or more existing site collections.

Note

To complete the procedures in this section, you must be an administrator for the site collection.

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

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

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

  3. 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

  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:

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

    <SiteCollURL> is the URL for the site collection

  4. Save the file, naming it Activate-WebApps.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-WebApps.ps1
    

To activate 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 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:

    $webAppsFeatureId = $(Get-SPFeature -limit all | where {$_.displayname -eq "OfficeWebApps"}).ID
    Get-SPSite -limit ALL | foreach {Enable-SPFeature $webAppsFeatureId -url $_.URL}
    
  3. Save the file, naming it Activate-AllWebApps.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-AllWebApps.ps1
    

Install and configure Office Web Apps on a new stand-alone SharePoint 2010 Products server

This section applies only if you are installing Office Web Apps on a new SharePoint 2010 Products server on which the SharePoint Products Configuration Wizard has not been previously run.

Note

To complete the following procedures, you must be a member of the Administrators group on the local computer.

Run Office Web Apps Setup

Complete the procedures in this section to install Office Web Apps components and files on a new stand-alone SharePoint 2010 Products server.

To run Office Web Apps Setup

  1. From the root folder of the Office Web Apps files, run Setup.exe.

  2. On the Enter your Product Key page, enter your product key, and then click Continue.

  3. On the Choose a file location page, do one of the following:

    • To install to the default location, click Install Now.

    • To install to a different location, specify the location that you want to install to, and then click Install Now.

  4. After Setup is complete, on the Run Configuration Wizard page, ensure that the Run the SharePoint Products Configuration Wizard now check box is selected, and then click Close to start the SharePoint Products Configuration Wizard.

To register and start the services by using the SharePoint Products Configuration Wizard

Complete this procedure to register and start the Office Web Apps services. Running the SharePoint Products Configuration Wizard on a new, stand-alone SharePoint 2010 Products server also creates the service applications and service application proxies, and enables the Office Web Apps feature on all existing site collections. The Office Web Apps feature is also enabled automatically for all new site collections.

To register and start the services by using the SharePoint Products Configuration Wizard

  1. If you left the Run the SharePoint Products Configuration Wizard now check box selected in the previous procedure, the SharePoint Products Configuration Wizard will be started automatically. If the wizard does not start, click Start, click All Programs, click Microsoft SharePoint 2010 Products, and then click SharePoint Products Configuration Wizard.

  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 Configuration Successful page, click Finish. Your new SharePoint site opens to the Template Selection page.

  5. On the Template Selection page, click one of the following options, and then click OK:

    • In the Template Selection section, click a predefined template.

    • In the Solutions Gallery section, click Solutions Gallery, and then customize your own site template.

  6. On the Set Up Groups for this Site page, specify who should have access to your site, and then either create a new group or use an existing group for these users by doing one of the following:

    • To create a new group, click Create a new group, and then type the name of the group and the members that you want to add to this group.

    • To use an existing group, click Use an existing group, and then select the user group in the Item list.

  7. Click OK.

Install and configure Office Web Apps on an existing SharePoint server farm

Perform the procedures in this section only if you are installing Office Web Apps on an existing SharePoint 2010 Products server farm on which the SharePoint Products Configuration Wizard has been previously run.

Note

When you run Setup.exe, Office Web Apps Setup configures the default open behavior for SharePoint to open Microsoft Word, Excel, PowerPoint, and OneNote documents in the browser by using their associated Web application.
If you have run Office Web Apps Setup on a live production server farm, but have not yet started the services, created the service applications, and activated the Office Web Apps feature, a user might not be able to access site collections or might get broken link error messages when he or she tries to open a document in the browser.
You can avoid end users getting these error messages while you complete additional deployment tasks on a live production server. We recommended that you enable the OpenInClient feature on all existing site collections prior to running Setup. For more information, see Configure the default open behavior for browser-enabled documents (Office Web Apps).

Note

To complete the following procedures, you must be a member of the Administrators group on the local computer.

Run Office Web Apps Setup

Complete this procedure to install Office Web Apps on a single SharePoint 2010 Products server. You must perform this procedure on every server in the farm.

To run Office Web Apps Setup

  1. From the root folder of the Office Web Apps files, run Setup.exe.

  2. On the Enter your Product Key page, enter your product key, and then click Continue.

  3. On the Choose a file location page, do one of the following:

    • To install to the default location, click Install Now.

    • To install to a different location, specify the location that you want to install to, and then click Install Now.

  4. After Setup is complete, on the Run Configuration Wizard page, do one of the following:

    • Leave the Run the SharePoint Products Configuration Wizard now selected and leave the page open until you have installed Office Web Apps on all servers, and then click Close.

    • Clear the Run the SharePoint Products Configuration Wizard now check box, and then click Close.

  5. You must repeat this procedure on each server in the farm before proceeding to the next procedure.

Run the SharePoint Products Configuration Wizard to register the services

Complete this procedure to register the Office Web Apps services on a single SharePoint 2010 Products server. You must perform this procedure on every server in the farm.

To run the SharePoint Products Configuration Wizard to register the services

  1. To start the SharePoint Products Configuration Wizard, click Start, click All Programs, click Microsoft SharePoint 2010 Products, and then click SharePoint 2010 Products Configuration Wizard.

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

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

  4. On the Completing the SharePoint Products Configuration Wizard page, click Next to begin the configuration.

  5. On the Configuration Successful page, click Finish, and then, on the Configure your SharePoint farm page, click Cancel.

  6. On the Configure your SharePoint farm page, click No, I will configure everything myself. Cancel.

    Important

    Do not run the Farm Configuration Wizard; you will configure the server farm for Office Web Apps by using the procedures that follow in this section.

  7. You must repeat this procedure on each server in the farm before proceeding to the next procedure.

Start the services

Note

You should complete this procedure after you have installed Office Web Apps and run the SharePoint Products Configuration Wizard on each server in the farm.

A service provides the physical location for a service application. For each server that you want to run the Office Web Apps service applications, you must start the services. You can start the services by using Central Administration or by using Windows PowerShell.

Complete the procedures in this section to start the services before proceeding to the next procedure. Start the services on the Web front-end servers on which you want users to view and edit documents in the browser.

To start the services by using Central Administration

  1. On the Central Administration Web site, in System Settings, click Manage services on server.

  2. On the Services on Server page, do the following:

    1. In the list of services on the selected server, for Excel Calculation Services, PowerPoint Service, and Word Viewing Service, click Start.

    2. Click the Server button at the top, click Change Server, and then in the Select Server dialog box, click a different server name.

    3. Repeat these steps until the services have been started on all Web front-end servers on which you want users to view and edit documents in the browser.

    Note

    On a server that is running SharePoint Server 2010 Enterprise, the Excel Calculation Services service is created and started by default. The OneNote Web App does not require a SharePoint service.

To start the services 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.

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

    $machinesToActivate = @("<ServerName1>","<ServerName2>")
    $serviceInstanceNames = @("Word Viewing Service","PowerPoint Service","Excel Calculation Services")
    foreach ($machine in $machinesToActivate)
    {
      foreach ($serviceInstance in $serviceInstanceNames)
      {
         $serviceID = $(Get-SPServiceInstance | where {$_.TypeName -match $serviceInstance} | where {$_.Server -match "SPServer Name="+$machine}).ID
         Start-SPServiceInstance -Identity $serviceID
      }
    }
    
  3. Replace the following placeholders with values where:

    <ServerName1> and <ServerName2> are names of SharePoint 2010 Products servers on which you want to start the services.

  4. Save the file, naming it Start-WebAppSvcs.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:

    ./Start-WebAppSvcs.ps1
    

Create the service applications and the service application proxies

Note

You must start the services before you complete the procedures in this section. You need to complete the procedures in this section on only one server in the farm.

After you have started the services, you must create the service applications and the service application proxies that connect the SharePoint Web front-end servers to the service applications. You can create the service applications and the service application proxies for the, Word Web App, PowerPoint Web App, and Excel Calculation Services Web applications by using Central Administration or by using Windows PowerShell. After the service applications are created, they will run automatically on the services that have been started.

Note

On a server that is running SharePoint Server 2010 Enterprise, the Excel Calculation Services service application is created by default. The OneNote Web App does not require a service application.

To create the service applications and the service application proxies by using Central Administration

  1. On the Central Administration Web site, click Application Management, and then, in the Service Applications area, click Manage service applications.

  2. On the Manage Service Applications page, click New, and then click PowerPoint Service Application.

  3. In the New PowerPoint Service Application dialog box, do the following:

    1. In the Name box, type either PowerPoint Service Application or another descriptive name.

    2. In the Application Pool area, do one of the following:

      • Click Use existing application pool, and then in the list click SharePoint Web Services Default.

      • Click Create new application pool, in the Application pool name box, type a name for the application pool, and then select a managed account from the Configurable list.

        Note

        When you create a new application pool, you can specify a security account used by the application pool to be either a predefined Network Service account or a managed account. The account must have db_datareader, db_datawriter, and execute permissions for the SharePoint configuration database, and be assigned to the db_owner role for the content databases. For more information about services account permissions in SharePoint 2010 Products, see Account permissions and security settings (SharePoint Server 2010).

    3. In the Default Application Proxy Group area, either leave the Add application proxy to default group check box selected, or clear it and then click OK.

  4. On the Manage Service Applications page, click New, and then click Word Viewing Service.

  5. In the Word Viewing Service Application dialog box, do the following:

    1. In the Name box, either type Word Viewing Service Application or another descriptive name.

    2. In the Application Pool area, do one of the following:

      • Click Use existing application pool, and then, in the list, click SharePoint Web Services Default.

      • Click Create new application pool, and then, in the Application pool name box, type a name for the application pool, and then select a managed account from the Configurable list.

        Note

        When you create a new application pool, you can specify a security account used by the application pool to be either a predefined Network Service account or a managed account. The account must have db_datareader, db_datawriter, and execute permissions for the SharePoint configuration database, and be assigned to the db_owner role for the content databases. For more information about services account permissions in SharePoint 2010 Products, see Account permissions and security settings (SharePoint Server 2010).

    3. In the Add to default proxy list area, either leave the Add this service application's proxy to the farm's default proxy list check box selected or clear it, and then click OK.

  6. On a server that is running SharePoint Server 2010, the Excel Calculation Services service application is created and started by default. If an Excel Calculation Services service application does not exist already, on the Manage Service Applications page, click New, and then click Excel Services Application.

  7. In the Create New Excel Services Application dialog box, do the following:

    1. In the Name box, type either Excel Services Application or another descriptive name.

    2. In the Application Pool area, do one of the following:

      • Click Use existing application pool, and then in the list click SharePoint Web Services Default

      • Click Create new application pool, and then, in the Application pool name box, type a name for the application pool, and then select a managed account from the Configurable list.

    3. In the Add to default proxy list area, either leave the Add this service application's proxy to the farm's default proxy list check box selected or clear it, and then click OK.

    Note

    You might need to refresh the Manage Service Applications page in your browser to see the new service applications and service application proxies.

To create the service applications and the service application proxies 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.

  2. On a computer that is running SharePoint Server 2010 Enterprise, the Excel Calculation Services service application is created by default. Copy the following code and paste it into a text editor, such as Notepad:

    $appPool = Get-SPServiceApplicationPool -Identity "SharePoint Web Services Default"
    New-SPWordViewingServiceApplication -Name "WdView" -ApplicationPool $appPool | New-SPWordViewingServiceApplicationProxy -Name "WdProxy"
    New-SPPowerPointServiceApplication -Name "PPT" -ApplicationPool $appPool | New-SPPowerPointServiceApplicationProxy -Name "PPTProxy" -AddToDefaultGroup
    

    If an Excel Calculation Services service application does not already exist, copy the following code and paste it into a text editor, such as Notepad:

    $appPool = Get-SPServiceApplicationPool - Identity "SharePoint Web Services Default"
    New-SPWordViewingServiceApplication -Name "WdView" -ApplicationPool $appPool | New-SPWordViewingServiceApplicationProxy -Name "WdProxy"
    New-SPPowerPointServiceApplication -Name "PPT" -ApplicationPool $appPool | New-SPPowerPointServiceApplicationProxy -Name "PPTProxy" -AddToDefaultGroup
    New-SPExcelServiceApplication -Name "Excel" -ApplicationPool $appPool
    

    Note

    This script uses the SharePoint Web Services Default application pool as an example. You can use another existing application pool or create a new one.

  3. Save the file, naming it Create-SvcAppsProx.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:

    ./Create-SvcAppsProx.ps1
    

Note

You might need to refresh the Manage Service Applications page in your browser to see the new service applications and service application proxies.

Activate the Office Web Apps feature

After you have started the services and created the service applications and service application proxies, you must activate the Office Web Apps feature on existing site collections. You can activate the feature on a single site collection by using the Site Settings page or by using Windows PowerShell. If you have a large number of site collections, you can activate the feature on all site collections at one time by using Windows PowerShell.

Complete the procedures in this section to activate the Office Web Apps feature on one or more existing site collections.

To activate the Office Web Apps feature by using the Site Settings page, you must be an administrator for the site collection. To activate the Office Web Apps feature by using Windows PowerShell, you must use an account that has read/write and execute permissions for the content databases and the SharePoint configuration database, and be assigned to the db_owner role for the content databases. For more information about services account permissions in SharePoint 2010 Products, see Account permissions and security settings (SharePoint Server 2010).You do not have to complete this procedure for new site collections that you create.

Important

If you activated the OpenInClient feature on all existing site collections prior to running Setup to prevent users from getting broken link error messages, you should disable the OpenInClient feature after you activate the Office Web Apps feature. For more information, see Configure the default open behavior for browser-enabled documents (Office Web Apps).

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

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

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

  3. On the Features page, for Office Web Apps, click Activate.

  4. Repeat this procedure for each existing site collection on which you want to activate the Office Web Apps feature.

To activate 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 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:

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

    SiteURL is the URL of the site collection

  4. Save the file, naming it ActivateWebApps.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:

    ./ActivateWebApps.ps1
    

To activate 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 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:

    $webAppsFeatureId = $(Get-SPFeature -limit all | where {$_.displayname -eq "OfficeWebApps"}).ID
    Get-SPSite -limit ALL |foreach {Enable-SPFeature $webAppsFeatureId -url $_.URL}
    
  3. Save the file, naming it ActivateWebAppsAll.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:

    ./ActivateWebAppsAll.ps1
    

Install and configure Office Web Apps on a new SharePoint server farm

Perform the procedures in this section only if you are installing Office Web Apps on a new SharePoint 2010 Products server farm on which neither the SharePoint Products Configuration Wizard nor the Farm Configuration Wizard have been previously run.

Note

To complete the following procedures, you must be a member of the Administrators group on the local computer.

Run Office Web Apps Setup

Complete this procedure to install the Office Web Apps files and components on a single SharePoint 2010 Products server in a new server farm on which neither the SharePoint Products Configuration Wizard nor the Farm Configuration Wizard has not previously been run. You must complete this procedure on each server in the server farm.

To run Office Web Apps Setup

  1. From the root folder of the Office Web Apps files, run Setup.exe.

  2. On the Enter your Product Key page, enter your product key, and then click Continue.

  3. On the Choose a file location page, do one of the following:

    • To install to the default location, click Install Now.

    • To install to a different location, specify the location that you want to install to, and then click Install Now.

  4. After Setup is complete, on the Run Configuration Wizard page, ensure that the Run the SharePoint Products Configuration Wizard now check box is selected, and then click Close to open the wizard.

  5. Complete the following procedure before you install Office Web Apps on the other servers in the farm.

Run the SharePoint Products Configuration Wizard to register services

Complete this procedure to run the SharePoint Products Configuration Wizard to register the Office Web Apps services on a single SharePoint 2010 Products server. You must complete this procedure on each server in the server farm.

Important

Install Office Web Apps and run the SharePoint Products Configuration Wizard first on a server on which you want to host the Central Administration Web application. The first time that you run the SharePoint Products Configuration Wizard, the wizard creates the configuration database that all successive servers that you add to farm will share. Then, install Office Web Apps and run the SharePoint Products Configuration Wizard on the other servers that you want to add to the new farm.

To run the SharePoint Products Configuration Wizard to register the services

  1. To start the SharePoint Products Configuration Wizard, click Start, click All Programs, click Microsoft SharePoint 2010 Products, and then click SharePoint 2010 Products Configuration Wizard.

  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.

  4. On the Connect to a server farm page, do one of the following:

    • To create a new server farm, on the first SharePoint 2010 Products server, click Create a new server farm, and then click Next.

    • To add more SharePoint 2010 Products servers to the farm, 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.

      • To create the new configuration database on the first SharePoint 2010 Products server, in the Database name box, type the name that you want to use for your configuration database or use the default database name. The default name is SharePoint_Config.

      • To add more SharePoint 2010 Products servers to the farm, click Retrieve Database Names, and then, in the Database name box, select the appropriate database from the list or type the name of your server farm's configuration database.

    2. On the first SharePoint 2010 Products server, to specify a database access account, do the following:

      • In the Username box, type the user name of the server farm account in DOMAIN\user name format.

        Important

        The server farm account is used to create and access your configuration database. It also acts as the application pool identity account for the Central Administration application pool, and it is the account under which the Windows SharePoint Services Timer service runs. The SharePoint Products Configuration Wizard adds this account to the SQL Server Login accounts, the SQL Server dbcreator fixed server role, the SQL Server securityadmin fixed server role, and the db_owner fixed database role for all SharePoint databases in the server farm. The user account that you specify as the service account must be a domain user account. However, it does not have to be a member of any specific security group on your Web servers or your database servers. We recommend that you follow the least-privilege principle and specify a user account that is not a member of the Administrators group on your Web servers or your database servers.

      • In the Password box, type the user password.

    3. Click Next.

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

    Although a passphrase resembles a password, it is usually longer to increase security. It is used to encrypt credentials of accounts that are registered in SharePoint 2010 Products. For example, the SharePoint Server system account that you provide when you run the SharePoint Products Configuration Wizard. Ensure that the passphrase meets the following criteria:

    • Contains at least eight characters

    • Contains at least three of the following four character groups:

      • English uppercase characters (from A through Z)

      • English lowercase characters (from a through z)

      • Numerals (from 0 through 9)

      • Nonalphabetic characters (such as !, $, #, %)

      Important

      Ensure that you remember the passphrase, because you must use it every time that you add a server to the farm.

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

    Note

    This page does not appear if you have added the first server to the farm and are adding an additional server to farm.

    1. To use the default port number for the Central Administration Web application, leave the Specify port number check box cleared, or — to use a specific port number  — select the Specify port number check box, and then type the port number that you want to use.

      Note

      If you want to access the Central Administration Web site from a remote computer, ensure that you enable access to the port number that you configure in this step. You do this by configuring an inbound rule for SharePoint Central Administration v4 in Windows Firewall with Advanced Security.

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

  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 on the first server in the farm, click Next to begin the configuration.

    • If you are adding an additional server to the farm and you 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 an additional server to the farm, the default setting is Do not use this machine to host the web site.

  9. On the Configuration Successful page, click Finish. Your new SharePoint site opens to the Configure your SharePoint farm page.

    Important

    Do not run the SharePoint Farm Configuration Wizard until you have installed Office Web Apps and run the SharePoint Products Configuration Wizard on every server in the farm.

Run the SharePoint Farm Configuration Wizard

After you have installed Office Web Apps and run the SharePoint Products Configuration Wizard on all servers in the farm, complete this procedure to run the SharePoint Farm Configuration Wizard. You need to run the Farm Configuration Wizard on only one server. Running the SharePoint Farm Configuration Wizard does the following on each server in the farm:

  • Starts the services

  • Creates the service applications and service application proxies

  • Activates the Office Web Apps feature for any existing site collections

On the Configure your SharePoint farm page, you can decide to use a wizard to configure services or you can configure services manually.

The choice that you make here is a matter of personal preference. The Farm Configuration Wizard will configure some services automatically when it is run. However, if you configure services manually, you have more flexibility in designing your logical architecture. For more information about how to configure the services manually, see Multiple servers for a three-tier farm (SharePoint Foundation 2010) or Multiple servers for a three-tier farm (SharePoint Server 2010).

Important

If you are using DBA-created databases, see Deploy by using DBA-created databases (SharePoint Server 2010).

To run the SharePoint Farm Configuration Wizard

  1. To run the Farm Configuration Wizard, on the Central Administration Web site, click Configuration Wizards, and then click Launch the Farm Configuration Wizard.

  2. On the Configure your SharePoint Farm page, in the Service Account area, click Use an existing managed account, and then select the server farm account that you created in an earlier procedure.

  3. In the Services area, select the Office Web Apps services and other services that you want to enable, and then click Next.

  4. On the Create Site Collection page, either complete the optional page to create a new top-level site or click Skip to continue without creating a new top-level site at this point. For more information about how to create a top-level site, see Create a site collection (SharePoint Server 2010).

  5. On the Configure your SharePoint Farm page, click Finish.