Advertisement
gn4711

SP Show in Grid

Mar 2nd, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. The PowerShell script below generates a Grid View report on all SharePoint Features installed within a Farm.
  2.  
  3. Copy the script below and paste it into a .ps1 file.
  4. ==================================================================
  5.  
  6. Add-PsSnapin Microsoft.SharePoint.PowerShell
  7.  
  8. ## SharePoint DLL
  9. [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
  10. [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration")
  11.  
  12. ## Creating SharePoint Farm
  13. $farm = [Microsoft.SharePoint.Administration.SPFarm]::Local
  14. $farm.FeatureDefinitions | Select ID, DisplayName, RootDirectory | Out-GridView
  15.  
  16. Remove-PsSnapin Microsoft.SharePoint.PowerShell
  17. ==================================================================
  18.  
  19. Alternatively, you can also generate a CSV report, based on the above script.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement