Activate Sandbox Solution With Powershell In Office 365

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:
  1. Open your PowerShell command in Office 365.
  2. 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  
  1. upload-solution -username “[email protected]” -password “password-1” -siteurl “https://gowtham.sharepoint.com” -solutionfilepath “C:\Solution.wsp” -environment GTEST-2013   
Activate Solution    
  1. activate-solution -username “[email protected]” -password “password-1” -siteurl “https://gowtham.sharepoint.com” -solutionid “86f8D9A8-BEFA-3DF8-8D25-03B23788763” -environment GTEST-2013
Deactivate Solution    
  1. deactivate-solution -username “[email protected]” -password “password-1” -siteurl “https://gowtham.sharepoint.com” -solutionid “86f8D9A8-BEFA-3DF8-8D25-03B23788763” -environment GTEST-2013  
Delete Solution  
  1. deactivate-solution -username “[email protected]” -password “password-1” -siteurl “https://gowtham.sharepoint.com” -solutionid “86f8D9A8-BEFA-3DF8-8D25-03B23788763” -environment GTEST-2013  
Thanksfor reading my blogs.! 
Ebook Download
View all
Learn
View all