I am only really worried about the extract portion of the blog, and have modified the script a bit to fit how I run my scripts.
#Get Backup Path $bkdir = read-host("Enter Folder Location") # Get Backup Path! # Set Backup Path if you want to hard code your path #$bkdir = "\\serverName\Shared\Temp" (optional "C:\Temp") # Verify folder exists if ((test-path $bkdir) -eq $false ) # Verify folder else create it... { [IO.Directory]::CreateDirectory($bkdir) } # Add Snapin Add-PSSnapin Microsoft.SharePoint.PowerShell -EA 0 (Get-SPFarm).Solutions | ForEach-Object{$var = $bkdir + "\" + $_.Name; $_.SolutionFile.SaveAs($var)}
Thanks Shane for making life less stressful!