external help file | applicable | schema |
---|---|---|
SharePoint Server 2013, SharePoint Server 2016, SharePoint Online |
2.0.0 |
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.
Install-PnPSolution -PackageId <GuidPipeBind>
-SourceFilePath <String>
[-MajorVersion <Int>]
[-MinorVersion <Int>]
[-Connection <SPOnlineConnection>]
PS:> Install-PnPSolution -PackageId c2f5b025-7c42-4d3a-b579-41da3b8e7254 -SourceFilePath mypackage.wsp
Installs the package to the current site
Optional major version of the solution, defaults to 1
Type: Int
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
Optional minor version of the solution, defaults to 0
Type: Int
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
ID of the solution, from the solution manifest
Type: GuidPipeBind
Parameter Sets: (All)
Required: True
Position: Named
Accept pipeline input: False
Path to the sandbox solution package (.WSP) file
Type: String
Parameter Sets: (All)
Required: True
Position: Named
Accept pipeline input: False
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