Get list of all solutions installed on the farm:
[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
$farm=[Microsoft.SharePoint.Administration.SPFarm]::Local
foreach ($solution in $farm.Solutions)
{
if ($solution.Deployed){
Write-Host($solution.DisplayName)
$solution.DisplayName >> c:\temp\test.txt
}
}
Get list of all features installed on the farm:
[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
$farm=[Microsoft.SharePoint.Administration.SPFarm]::Local
foreach ($feature in $farm.FeatureDefinitions)
{
if ($feature.Scope -eq "Farm" -and !$feature.Hidden){
Write-Host($feature.DisplayName)
$feature.DisplayName >> c:\temp\feature.txt
}
}
Comments
Post a Comment