Showing posts with label central administration. Show all posts
Showing posts with label central administration. Show all posts

Retrieve All Wsp from the Central Admin

Add-PSSnapin Microsoft.SharePoint.PowerShell –erroraction SilentlyContinue
## setup our output directory 
$dirName = "c:\ExportedSolutions"
Write-Host Exporting solutions to $dirName 
foreach ($solution in Get-SPSolution) 
{ 
    $id = $Solution.SolutionID 
    $title = $Solution.Name 
    $filename = $Solution.SolutionFile.Name
    Write-Host "Exporting ‘$title’ to …\$filename" -nonewline 
    try { 
        $solution.SolutionFile.SaveAs("$dirName\$filename") 
        Write-Host " – done" -foreground green 
    } 
    catch 
    { 
        Write-Host " – error : $_" -foreground red 
    } 
}

Remove Solution from the Central admin using Poweshell

Add-PsSnapin Microsoft.SharePoint.Powershell –ErrorAction SilentlyContinue


Uninstall-SPSolution –Identity bamboo.logging.v1.wsp

Start-Sleep -Seconds 60

Remove-SPSolution –Identity bamboo.logging.v1.wsp


Uninstall-SPSolution –Identity basicwebpartssingle.wsp

Start-Sleep -Seconds 60

Remove-SPSolution –Identity basicwebpartssingle.wsp



Uninstall-SPSolution –Identity contentsliderwebpart.wsp


Start-Sleep -Seconds 60

Remove-SPSolution –Identity contentsliderwebpart.wsp


Uninstall-SPSolution –Identity mydocstreeview.wsp

Start-Sleep -Seconds 60

Remove-SPSolution –Identity mydocstreeview.wsp


Uninstall-SPSolution –Identity sampletodeployapage.wsp


Start-Sleep -Seconds 60

Remove-SPSolution –Identity sampletodeployapage.wsp

Write-Host "Finished! Press enter key to exit." -ForegroundColor Green
Read-Host