Tuesday, December 20, 2011

SharePoint 2010 Powershell


 Get-Help
 Get-Command
 Get-Command -Noun SP* (you get nothing because sharepoint module is not loaded)
 Get-PSSNapin -registered
 Add-PSSnapin Microsoft.Sharepoint.Powershell(to load sharepoint snapin)
 Get-Command -Noun SP* (now you get all powershell SP commands)
 Get-SPServiceApplication
 Get-SPFarm
 Get-SPWebAppliction
 Get-SPSite
 Get-SPFeature (get all features across farm/web application/sites)

No comments:

Post a Comment