Home > Work > How to backup deployed solutions

How to backup deployed solutions

Recently I had the need to backup all the solutions deployed to a test system before a code refresh, to achieve this I used the simple piece of PowerShell below.


$dirName = "C:\Solutions"
foreach ($solution in Get-SPSolution)
$filename = $Solution.SolutionFile.Name


To run the PowerShell script simply create the folder c:\Solutions, or set another location in the script and run with Farm credentials or equivalent.


Happy SharePointing !

Categories: Work
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: