Now Microsoft have announced Visual Studio solution which allows you to control SharePoint Online sandbox solutions using Powershell.
Powershell is fair method to install the solutions in sharepoint.
The wsp solutions builds a DLL file which can be imported as a PowerShell module. Once you added importmodule dll you can Add, Activate, Deactivate and Delete solutions from a SharePoint Online site collection using Powershell.
Steps:
- Open your PowerShell command in Office 365.
- Run the below Codes.
Before you run the
Code Download the below DLL from Microsoft.
Import the below dll ,
Import-Module “c:Contoso.Solution.Cmdlets.dll”,
Add/Upload Wsp solution
- upload-solution -username “[email protected]” -password “password-1” -siteurl “https:
Activate Solution
- activate-solution -username “[email protected]” -password “password-1” -siteurl “https:
Deactivate Solution
- deactivate-solution -username “[email protected]” -password “password-1” -siteurl “https:
Delete Solution
- deactivate-solution -username “[email protected]” -password “password-1” -siteurl “https:
Thanksfor reading my blogs.!