Frage

Ich erhalte ein Inventar und ich muss die Liste der SharePoint-Lösungen (* .wsp) erhalten, die auf jede einzelne Webanwendung eingesetzt werden, und idealerweise wäre es auch toll, den Anwendungspool auf welchem Web-Server dieses Web aufzulisten-Applikation gehört zu?

so etwas >> generasacodicetagpre.

Ich habe versucht, get-spssolution zu verwenden, aber die Ausgabe enthält keine Web-App-Namen und get-spwebapplication gibt nicht die Liste der .wsp fürJede Web-App aufgelistet.

stsadm -o Enumolutions scheint info zu enthalten, die ich brauche, aber weiß nicht, wie man das Ausgabeformat in etwas Ähnlich erwähnt ändert.

Dies ist der MS SharePoint Server 2010, der auf W2K8R2 STD läuft.

War es hilfreich?

Lösung

First, get all your web applications and iterate through them. While in the loop print web application name and application pool name. Last, iterate all solutions and print their names - like this:

$contentWebAppServices = (Get-SPFarm).services |
 ? {$_.typename -eq "Microsoft SharePoint Foundation Web Application"}

foreach($webApp in $contentWebAppServices.WebApplications)
{
    Write-Host "Web Application  : " $webApp.name
    Write-Host "Application Pool : " $webApp.ApplicationPool.Name

    Get-SPSolution | ForEach-Object {
        if ($_.LastOperationDetails.IndexOf($webApp.url) -gt 0) 
        {
            Write-Host "    Solutions:"
            Write-Host "   " $_.DisplayName
        }
    }
} 

The output looks like this:

Web Application  :  SharePoint - 1337
Application Pool :  SharePoint - 1337
Web Application  :  SharePoint - 80
Application Pool :  SharePoint - 80
    Solutions:
    customer.intranet.wsp

The first web application (SharePoint - 1337) doesn't have deployed solutions, but the second (SharePoint - 80) has one.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit sharepoint.stackexchange
scroll top