martes, 19 de abril de 2011

Comandos PowerShell

Los comandos que mas uso en powershell:

 
Obtener Ayuda
Get-help sharepoint

 
Restaurar una base de datos
restore-SPSite -Identity http://xy/ -path c:\yy.bak -Force

 
Importar una lista
Aplica solmanete cuando se hizo el back-up granular
import-SPWeb -Identity http://xy/ -path c:\yy.cmp

 
Ejecutar jobs:
Start-SPAdminJob

Instalar una solucion WSP:
  1. Add-SPSolution -LiteralPath "C:\TestWebPart.wsp"
  2. Install-SPSolution -Identity "TestWebPart.wsp" -WebApplication "http://localhost" -GACDeployment
  3. Update-SPSolution –Identity MySharePointSolution.wsp –LiteralPath “D:\Deploy\MySharePointSolution.wsp” –GacDeployment

 

 
Todas las referencias:
http://technet.microsoft.com/en-us/library/ff621084.aspx

No hay comentarios:

Publicar un comentario