February 2013
Intermediate to advanced
304 pages
8h 26m
English
Scenario/Problem: You want to export the installed farm solutions to local files.
Solution: Create a script that loops through the solutions and saves them locally.
Using the SharePoint assemblies, you can easily generate a script that loops through the installed farm solutions and actually extracts them into their .wsp files on a local drive. This becomes extremely valuable when you are moving solutions from one environment to another (for example, from development to staging). Listing 9.26 shows a sample script.
Listing 9.26. Sample Script for Exporting All Farm Solutions
[Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")[Void][System.Reflection.Assembly]::LoadWithPartialName( ...
Read now
Unlock full access