Invoke-SPOSiteDesign

公開されたサイト デザインを指定されたサイト コレクション ターゲットに適用します。 これにより、サイト デザインを既存のサイト コレクションに適用できます。 サイト デザインを適用できるサポートされているサイト テンプレートには、次のものが含まれます。"モダン" チーム サイト (O365 グループを含む)。"モダン" チーム サイト (O365 グループなし);コミュニケーション サイト;従来のチーム サイト。および従来の発行サイト。

構文

Default (既定)

Invoke-SPOSiteDesign
    -Identity <SPOSiteDesignPipeBind>
    -WebUrl <String>
    [<CommonParameters>]

説明

公開されたサイト デザインを指定されたサイト コレクション ターゲットに適用します。 これにより、サイト デザインを既存のサイト コレクションに適用できます。

例 1

この例では、スクリプトが 2 つのリストを作成し、いくつかの列を書式設定し、そのリストをサイト ナビゲーションに追加してから、サイトを既存のハブ サイトに参加させるサイト設計を適用します。

Invoke-SPOSiteDesign -Identity 501z8c32-4147-44d4-8607-26c2f67cae82 -WebUrl "https://contoso.sharepoint.com/sites/projectgo"

Title                                             Outcome
----------------------------------------------    -------
Create or update list Project Activities          Success
Update list description                           Success
Create column Project Status                      Success
Create column Effort (days)                       Success
Set custom formatter for field Project Status     Success
Set custom formatter for field Effort (days)      Success
Create or update list Project Collateral          Success
Create column Due Date                            Success
Set custom formatter for field Due Date           Success
Add Project Activities to left nav                Success
Add Project Collateral to left nav                Success
Add to Hub Site                                   Success

パラメーター

-Identity

適用対象: SharePoint Online

適用するサイト デザインの ID。

パラメーターのプロパティ

型:Microsoft.Online.SharePoint.PowerShell.SPOSiteDesignPipeBind
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:True
パイプラインからの値:True
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-WebUrl

該当する: SharePoint Online サイト デザインが適用されるサイト コレクションの URL。

パラメーターのプロパティ

型:System.String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

CommonParameters

このコマンドレットは、共通パラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable をサポートします。 詳細については、「about_CommonParameters」を参照してください。

入力

Microsoft.Online.SharePoint.PowerShell.SPOSiteDesignPipeBind

出力

System.Object