Sign in
|
Join PowerShell.com!
|
Help
Home
PowerTips
Ask the Experts
Forums
Webcasts
Blogs
eBookV2
Script Library
Twitter Grid
Modules
QuickClick
Scripts
Snippets
Videos
Library
»
Script Library
»
SharePoint
»
Get-SPSolutions
Get-SPSolutions
Share
|
Browse Library
Module Library
QuickClick Library
Script Library
Active Directory
BizTalk
Citrix
Clustering
Desktop
Exchange Server 2003
Exchange Server 2007
File System
Group Policy
Internet Information Server (IIS)
Local Accounts
Logs
Microsoft Office
Microsoft Team Foundation Server
MySQL
Networking
Registry
Remote Desktop Services
Remoting
Security
SharePoint
SQL Server
System Center Virtual Machine Manager
System Center Configuration Manager
System Center Operations Manager
Tutorial
Terminal Server
Using .Net
Virtual Server
VMware
Windows 7
Windows HPC
Windows Server 2000
Windows Server 2003
Windows Server 2008
Windows XP
WMI
Misc
Snippet Library
Video Library
Members Only
Tags
AppPath
Documents
List Items
List Properties
SharePoint
Site Methods
Site Properties
Solutions
View more
Previous
|
Next
|
View all files
|
View Slideshow
Download
posted by
Richard Giles
10-06-2008
Downloads: 373
File size: 896 B
Views: 1,554
Embed
Get-SPSolutions
## =====================================================================
## Title
: Get-SPSolutions
## Description : Retrieve sharepoint solutions from the farm
## Author
: Idera
## Date
: 8/5/2008
## Input
: -verbose -debug
## Output
: Solutions object
## Usage
: PS> . Get-SPSolutions -v -d
## Notes
: Attributed to Serge van den Oever
## Tag
: PowerShell, Sharepoint
## =====================================================================
param
(
[
switch
]
$verbose
,
[
switch
]
$debug
)
function
main()
{
if
(
$verbose
) {
$VerbosePreference
=
"Continue"
}
if
(
$debug
) {
$DebugPreference
=
"Continue"
}
Get-SPSolutions
}
function
Get-SPSolutions
()
{
[
void
][
reflection.assembly
]::
LoadWithPartialName
(
"Microsoft.SharePoint"
)
$farm
=
[
Microsoft.SharePoint.Administration.SPFarm
]::
get_Local
()
$farm
.
get_Solutions
()
}
main
Filed under:
SharePoint
,
Solutions
Retrieve sharepoint solutions from the farm.
Copyright 2011 PowerShell.com. All rights reserved.