Update-SPAppCatalogConfiguration

將特定網站集合設為應用程式目錄網站集合。

Syntax

Update-SPAppCatalogConfiguration
      [-Site] <SPSitePipeBind>
      [-AssignmentCollection <SPAssignmentCollection>]
      [-Confirm]
      [-Force]
      [-SkipWebTemplateChecking]
      [-WhatIf]
      [<CommonParameters>]

Description

使用 Update-SPAppCatalogConfiguration Cmdlet 將特定網站集合設定為應用程式類別目錄網站集合。 應用程式類別目錄網站集合包含適用于 SharePoint 和 Office 應用程式的應用程式目錄。 它可用來協助 ITPro 系統管理員將 SharePoint Apps 和 Office Apps 散發給使用者。 每個 Web 應用程式或租用都可以有 1 個相關聯的應用程式類別目錄網站集合。

如需 SharePoint 產品Windows PowerShell的許可權和最新資訊,請參閱 SharePoint Server 2016 Windows PowerShell線上檔,SharePoint Server 2019參考 (https://go.microsoft.com/fwlink/p/?LinkId=671715) 。

範例

---------------範例-----------

Update-SPAppCatalogConfiguration -Site https://contoso/sites/appcatalog_1 -Force:$true -SkipWebTemplateChecking:$true

此範例會將 https://contoso/sites/appcatalog_1 設為其所屬之承租人的應用程式目錄網站集合。

參數

-AssignmentCollection

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Confirm

執行 Cmdlet 之前提示您確認。

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Force

指定即使有驗證錯誤,仍要強制標示網站集合。

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Site

指定要設為應用程式目錄網站集合之網站集合的 URL 或 GUID。

Type:SPSitePipeBind
Position:1
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-SkipWebTemplateChecking

指定是否要略過檢查網站的範本是否為 APCATALOG#0。

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-WhatIf

顯示執行 Cmdlet 時會發生什麼情況。 未執行 Cmdlet。

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

輸入

Microsoft.SharePoint.PowerShell.SPSitePipeBind

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

輸出

系統.物件