Sharepoint – STSADM and PowerShell commands
STSADM Reference (SP 2007):
http://technet.microsoft.com/en-us/library/cc261956(office.12).aspx
PowerShell for Sharepoint Reference (SP 2010):
Windows PowerShell for SharePoint Server 2010
http://technet.microsoft.com/en-us/library/ee662539.aspx
Index of SharePoint Server 2010 Windows PowerShell cmdlets
http://technet.microsoft.com/en-us/library/ff678226.aspx
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)
http://technet.microsoft.com/en-us/library/ff621084.aspx
PowerShell console and STSADM changes (SP 2007 vs SP 2010):
Source: http://blog.falchionconsulting.com/index.php/2009/10/sharepoint-2010-stsadm-and-powershell/
“…
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
RISULTATO:
Nuovo eseguibile:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe
Nuova voce in: Programmi > Accessori > Windows Powershell > Windows Powershell ISE