How to Install an App in SharePoint 2013 Using PowerShell

After you have successfully configured an environment for apps in SharePoint 2013, you can add apps from the SharePoint Store to a site. Whether you developed the apps yourself or have a file with a .app extension though, you will need to deploy it to your SharePoint site collection in order to access all of the app’s features. This can be accomplished either using Windows PowerShell or Visual Studio. In this article, we’ll show you how to install SharePoint 2013 apps using PowerShell.

Before you begin, make sure that the user running the Windows PowerShell cmdlets has the following memberships on all databases that you will be using:

  • db_securityadmin
  • db_owner

In addition, the user will also need to be a member of the Site Collection Administrators group or Site Owners group on the site collection where you want to install.

Next, go to Start > All Programs.  Expand the folder MS SharePoint 2013 Products to reveal the SharePoint 2013 Management Shell program.

Select SharePoint 2013 Management Shell with the Run as administrator option.

Run the following command to import the app package:

$spapp = Import-SPAppPackage -Path <Path> -Site <URL> -Source <Source>

Please note that:

  • Path refers to the app package path in your local system.
  • URL refers to the URL for the site collection where you want to import the app.
  • Source is where the app came from (i.e.: Marketplace, CorporateCatalog, DeveloperSite, ObjectModel, RemoteObjectModel, or InvalidSource).

Per the above, in this example, we’ll be typing the following command line: $spapp = Import-SPAppPackage -Path “C:AppsBamboo.Apps.QuickAdd.app” -Site “http://chauo15:81/sites/sharepoint” -Source CorporateCatalog

Press Enter

When asked if you want to import the package, type Y

Run the following command to install the app:

$instance = Install-SPApp -Web <URL> -Identity $spapp

Please note that URL refers to the URL of the site or subsites where you want to deploy the app.

In this example, we’ll be typing the following command line: $instance = Install-SPApp -Web “http://chauo15:81/sites/sharepoint” -Identity $spapp

Press Enter

Return to your Site Contents page.  You will see your new app is now listed and available for use.

Any questions contact us!

SharePoint Online

The cloud parts are functional components that extend your SharePoint Online environment in Microsoft 365.

Supports Classic and Modern sites for SharePoint Online/Microsoft 365

Small Business Pricing and Discounts

SharePoint

Top SharePoint Online Products

Experience greater power and savings by bundling our SharePoint apps and cloud parts.


Calendar Plus


Chart Plus


Knowledge Base


Project Management Central


Simple List Search

 

On-Premises Only

These web parts extend SharePoint beyond its out-of-the-box capabilities by tailoring it to your requirements with Bamboo Solution’s growing portfolio of SharePoint Web Parts.

SharePoint 2016, 2019, 2022 - Classic Pages Only

SharePoint

Top On-Premises Only Products

Experience greater power and savings by bundling our SharePoint apps and web parts.


Calendar Plus


Data Viewer


Password Change


Password Expiration


Password Reset

 

Our team of Microsoft 365 experts help you get the most out of your Microsoft technology, we have the best Microsoft 365 talent to streamline your organization.

Streamline Your Department

M365 Plus

Managed Services

We Have What You Need

Federal Contractors