Skip to content

Latest commit

 

History

History
94 lines (70 loc) · 1.96 KB

Install-PnPSolution.md

File metadata and controls

94 lines (70 loc) · 1.96 KB
external help file applicable schema
SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
2.0.0

Install-PnPSolution

SYNOPSIS

Installs a sandboxed solution to a site collection. WARNING! This method can delete your composed look gallery due to the method used to activate the solution. We recommend you to only to use this cmdlet if you are okay with that.

SYNTAX

Install-PnPSolution -PackageId <GuidPipeBind>
                    -SourceFilePath <String>
                    [-MajorVersion <Int>]
                    [-MinorVersion <Int>]
                    [-Connection <SPOnlineConnection>]

EXAMPLES

------------------EXAMPLE 1------------------

PS:> Install-PnPSolution -PackageId c2f5b025-7c42-4d3a-b579-41da3b8e7254 -SourceFilePath mypackage.wsp

Installs the package to the current site

PARAMETERS

-MajorVersion

Optional major version of the solution, defaults to 1

Type: Int
Parameter Sets: (All)

Required: False
Position: Named
Accept pipeline input: False

-MinorVersion

Optional minor version of the solution, defaults to 0

Type: Int
Parameter Sets: (All)

Required: False
Position: Named
Accept pipeline input: False

-PackageId

ID of the solution, from the solution manifest

Type: GuidPipeBind
Parameter Sets: (All)

Required: True
Position: Named
Accept pipeline input: False

-SourceFilePath

Path to the sandbox solution package (.WSP) file

Type: String
Parameter Sets: (All)

Required: True
Position: Named
Accept pipeline input: False

-Connection

Optional connection to be used by cmdlet. Retrieve the value for this parameter by eiter specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type: SPOnlineConnection
Parameter Sets: (All)

Required: False
Position: Named
Accept pipeline input: False

RELATED LINKS

SharePoint Developer Patterns and Practices