Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Power Pivot Configuration using Windows PowerShell


SQL Server 2016 includes Windows PowerShell cmdlets that you can use to configure an installation of Power Pivot for SharePoint. To fully configure an installation with PowerShell requires the use of both SharePoint cmdlets and Power Pivot for SharePoint cmdlets. A majority of configuration can be completed using one of the Power Pivot tools. For more information on the tools, see Power Pivot Configuration Tools.


For a SharePoint 2010 farm, SharePoint 2010 SP1 must be installed before you can configure either Power Pivot for SharePoint, or a SharePoint farm that uses a SQL Server 2012 database server. If you have not yet installed the service pack, install it before you begin configuring the server.

You can build Windows PowerShell script (.ps1) files to automate configuration tasks. This approach is recommended if you require scripted installation and configuration steps that you can run on any server. You might require such a script as part of a disaster recovery plan for rebuilding a server in the event of a hardware failure.

To see content and examples of the Power Pivot cmdlets, see PowerShell Reference for Power Pivot for SharePoint.

To use PowerShell to view a list of the Power Pivot cmdlets:

  1. Open SharePoint Management Shell using the Run as Administrator option.

  2. Enter the following command:

    Get-help *powerpivot*

    You should see a list of cmdlets that include Power Pivot in the cmdlet name. For example Get-PowerPivotServiceApplication. The number of cmdlets available depends on the version of Analysis Services you are using.

    • 10 cmdlets with SQL Server 2012 SP1 Analysis Services server configured in SharePoint mode, and SharePoint 2013. The 2012 SP1 version utilizes a new architecture that allows the Analysis Server to run outside the SharePoint farm and requires fewer management Windows PowerShell cmdlets.

    • 17 cmdlets with SQL Server 2012 Analysis Services server configured in SharePoint mode, and SharePoint 2010.

    If no commands are returned in the list or you see an error message similar to “get-help could not find *powerpivot* in a help file in this session.“, see the next section in this topic for instructions on how to enable the Power Pivot cmdlets on the server.

    All cmdlets have online help. The following example shows how to view the online help for the New-PowerPivotServiceApplication cmdlet:

    Get-help new-powerpivotserviceapplication -full

    Alternatively, to view just the examples, use the following syntax:

    Get-help new-powerpivotserviceapplication -example

Power Pivot cmdlets are available after you install Power Pivot for SharePoint and deploy the farm solution. The solutions are deployed when you ran the Power Pivot Configuration tool. Follow these steps to enable the use of cmdlets:

  1. Open SharePoint Management Shell using the Run as Administrator option.

  2. Run the first cmdlet:

    Add-SPSolution –LiteralPath “C:\Program Files\Microsoft SQL Server\110\Tools\PowerPivotTools\ConfigurationTool\Resources\PowerPivotFarm.wsp”

    The cmdlet returns the name of the solution, its solution ID, and Deployed=False. In the next step, you deploy the solution.

  3. Run the second cmdlet to deploy the solution:

    Install-SPSolution –Identity PowerPivotFarm.wsp –GACDeployment -Force
  4. Close the window. Reopen it, again using the Run as Administrator option.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft