Domanda

Sto eseguendo un inventario e ho bisogno di ottenere la lista di soluzioni SharePoint (* .wsp) distribuita su ogni singola applicazione web e idealmente, sarebbe anche perfetto elencare quale pool di applicazioni su quale web server questo web-Applicazione appartiene a?

Qualcosa come questo >>

solution-name.wsp / web-application-name / application-pool-name
.

Ho provato a usare Get-Spsolution , ma l'output non contiene nome-app Web & Get-SPWebapplication non fornisce l'elenco di .wsws perOgni app Web-app ha elencato.

stsadm -o enumolutions sembra contenere informazioni di cui ho bisogno, ma non so come modificare il formato di output in qualcosa di simile sopra menzionato sopra.

Questo è MS SharePoint Server 2010 in esecuzione su W2K8R2 STD.

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top