質問

在庫を実行しています。 - アプリケーションは?に属します

このようなもの>>

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

get-spsolution を使ってみましたが、出力にWeb-Appの名前が含まれていません& get-spwebApplication は.wspのリストを与えない各Webアプリはリストされています。

stsadm -o enumsolutions は私が必要とする情報を含むように見えますが、出力フォーマットを上記のようなものに変更する方法はわかりません。

これは、W2K8R2 STDで実行されているMS SharePoint Server 2010です。

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません sharepoint.stackexchange
scroll top