Wednesday 21 November 2012

How to download a WSP file from the Farm Solution Store



---------------------------------------------------------

[System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”)

    $farm = [Microsoft.SharePoint.Administration.SPFarm]::Local

    $solution = $farm.Solutions["uiframework.wsp"]

    $file = $solution.SolutionFile

    $file.SaveAs(“D:\wsp\uiframework.wsp”)








Default master set using powershell
====================================
$web = Get-SPWeb http://gsshyd-dt-5765:1111/

$web.CustomMasterUrl = "/_catalogs/masterpage/v4.master"

$web.MasterUrl = "/_catalogs/masterpage/v4.master"

$web.Update()

No comments:

Post a Comment