Saturday, 20 October 2012

Save Site Template using Powershell

Add-PsSnapin Microsoft.SharePoint.Powershell –ErrorAction SilentlyContinue
$Web=Get-SPWeb http://globas/

$Web.SaveAsTemplate("test4","test4","test4",0)


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

No comments:

Post a Comment