Get-SPSolutions


posted by Richard Giles
10-06-2008

Downloads: 373
File size: 896 B
Views: 1,554

Embed
Get-SPSolutions
  1. ## ===================================================================== 
  2. ## Title       : Get-SPSolutions 
  3. ## Description : Retrieve sharepoint solutions from the farm 
  4. ## Author      : Idera 
  5. ## Date        : 8/5/2008 
  6. ## Input       : -verbose -debug     
  7. ## Output      : Solutions object 
  8. ## Usage            : PS> . Get-SPSolutions -v -d 
  9. ## Notes            : Attributed to Serge van den Oever 
  10. ## Tag            : PowerShell, Sharepoint 
  11. ## ===================================================================== 
  12.  
  13. param 
  14.     [switch]$verbose
  15.     [switch]$debug 
  16.  
  17. function main() 
  18.     if ($verbose) {$VerbosePreference = "Continue"
  19.     if ($debug) {$DebugPreference = "Continue"
  20.     Get-SPSolutions  
  21.  
  22. function Get-SPSolutions() 
  23.     [void][reflection.assembly]::LoadWithPartialName("Microsoft.SharePoint"
  24.    $farm = [Microsoft.SharePoint.Administration.SPFarm]::get_Local() 
  25.    $farm.get_Solutions() 
  26.  
  27. main 
Filed under: ,

Retrieve sharepoint solutions from the farm.

Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.