Import-SPPerformancePointContent

**適用先:**SharePoint Server 2016

Performance Point Server (PPS) のダッシュボードをインポートします。

構文

Import-SPPerformancePointContent -DatasourceMap <Hashtable> -ImportFileUrl <String> -LocationMap <Hashtable> -MasterPageUrl <String> -SiteDestination <SPWebPipeBind> [-AssignmentCollection <SPAssignmentCollection>]

-------------------- 例 --------------------

$ContentList = @{"/bi/Dashboard Content" = "/biprod/Dashboard Content"; "/bi/My Projects" = "/biprod/My Projects"}

$DatasourceList = @{"/bi/DataConnections/AdventureWorks.ppsdc" = "/myBi/libraries/DataConnections/AdventureWorks_prod.ppsdc"; "/bi/DataConnections/AW 2008 Cubes4.ppsdc" = "/myBi/libraries/DataConnections/AW 2008 Cubes3.ppsdc"; "/sales/DataConnections/Excel DS.ppsdc" = "/marketing/PPS Data Sources/PDW 2010.ppsdc"}

Import-SPPerformancePointContent -ImportFileURL "https://contoso.com/biprod/DocumentLibrary/Dashboard1.cmp" -SiteDestination "https://contoso.com/biprod/" -LocationMap $ContentList -DatasourceMap $DatasourceList -MasterPage "marketing and sales.master"

この例では、$Datasourcelist 変数および $ContentList 変数を使用してダッシュボードをインポートします。

解説

Import-SPPerformancePointContent は、別のサーバーへのインポートに使用することができる CMP ファイルから PPS ダッシュボードとその依存関係をインポートします。

パラメーター

パラメーター 必須 種類 説明

DatasourceMap

必須

System.Collections.Hashtable

対象のライブラリに対して、既存のデータ ソースをマップするか、または新しいデータ ソースを追加します。

ImportFileUrl

必須

System.String

エクスポート コマンドで作成された CMP ファイルのパスと名前。

LocationMap

必須

System.Collections.Hashtable

ソース リストとターゲット リストの間で場所をマップします。

MasterPageUrl

必須

System.String

インポートされたダッシュボードに使用するマスター ページを指定します。

SiteDestination

必須

Microsoft.SharePoint.PowerShell.SPWebPipeBind

ダッシュボードの展開先のサイトを指定します。また、インポート主要業績評価指標 (KPI) の場所を決定するためにも使用されます。

AssignmentCollection

省略可

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

適切な破棄を行うためにオブジェクトを管理します。SPWebSPSite などのオブジェクトの使用によって大量のメモリが使用される場合があるので、Windows PowerShell スクリプトでこれらのオブジェクトを使用するには適切なメモリ管理が必要です。メモリの解放が必要になった場合は、SPAssignment オブジェクトを使用して、変数へのオブジェクトの割り当てとオブジェクトの破棄を行うことができます。割り当てコレクションまたは Global パラメーターが使用されていない場合、SPWebSPSite、または SPSiteAdministration オブジェクトが使用されていると、オブジェクトは自動的に破棄されます。

メモメモ:
Global パラメーターが使用されている場合は、オブジェクトはすべてグローバル ストアに格納されます。Stop-SPAssignment コマンドを使用してオブジェクトの使用または破棄を直接行わないと、メモリ不足のシナリオになる場合があります。

関連項目

Export-SPPerformancePointContent