Archive for agosto 2011

Sharepoint – STSADM and PowerShell commands

STSADM Reference (SP 2007):

PowerShell for Sharepoint Reference (SP 2010):
Windows PowerShell for SharePoint Server 2010

Index of SharePoint Server 2010 Windows PowerShell cmdlets

Creating a sharepoint PowerShell batch file:

Filename: MyBatch.ps1
First row: Add-PSSnapin Microsoft.SharePoint.PowerShell
Next rows: powershell commands

STSADM to Windows PowerShell mapping (SharePoint Server 2010)

PowerShell console and STSADM changes (SP 2007 vs SP 2010):


This new console window is actually just a PowerShell console which pre-loads the SharePoint PowerShell Snap-in.  You can see that by looking at the target for the shortcut:

C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe -NoExit  ” & ‘ C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG\POWERSHELL\Registration\\sharepoint.ps1 ‘ ”



NOTA: Molto utile per il debug la console ISE
Per attivarla eseguire da PowerShell :

Import-Module ServerManager
Add-WindowsFeature PowerShell-ISE


Nuovo eseguibile:

Nuova voce in: Programmi > Accessori > Windows Powershell > Windows Powershell ISE

Categorie:SharePoint Tag: