Get-SPOfficeStoreAppsDefaultActivation

 

**適用版本:**SharePoint Server 2013 Standard, SharePoint Server 2016

**上次修改主題的時間:**2015-03-09

傳回 Office 應用程式 的屬性。

語法

Get-SPOfficeStoreAppsDefaultActivation -WebApplication <SPWebApplicationPipeBind> [-AssignmentCollection <SPAssignmentCollection>]

Get-SPOfficeStoreAppsDefaultActivation -SiteSubscription <SPSiteSubscriptionPipeBind> [-AssignmentCollection <SPAssignmentCollection>]

詳細描述

此 Cmdlet 包含一個以上的參數集。您可能只使用一個參數集中的參數,但不可以結合不同參數集的參數。如需如何使用參數集的詳細資訊,請參閱 Cmdlet Parameter Sets

使用 Get-SPOfficeStoreAppsDefaultActivation Cmdlet 可傳回在特定 Web 應用程式中執行的 Office 應用程式 設定。

如需 Windows PowerShell for SharePoint 產品的權限及最新資訊,請參閱線上文件 Windows PowerShell for SharePoint Server 2016 參考

參數

參數 必要 類型 說明

SiteSubscription

必要

Microsoft.SharePoint.PowerShell.SPSiteSubscriptionPipeBind

指定套用設定的網站群組。

WebApplication

必要

Microsoft.SharePoint.PowerShell.SPWebApplicationPipeBind

指定套用設定之 Web 應用程式的 URL、GUID 或名稱。

AssignmentCollection

選用

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

為能適當處置物件而管理物件。使用 SPWebSPSite 等物件可能會耗用大量的記憶體,因此在 Windows PowerShell 指令碼中使用這些物件時,必須適當地管理記憶體。您可以使用 SPAssignment 物件將物件指派給變數,並在不需要時處置這些物件,以釋放記憶體。使用 SPWebSPSiteSPSiteAdministration 物件時,若未使用指派集合或 Global 參數,將會自動處置這些物件。

注意

使用 Global 參數時,所有物件會包含在全域儲存區內。若未立即使用物件,或未使用 Stop-SPAssignment 命令處置物件,將會發生記憶體不足的狀況。

AutoGenParams

參數 必要 類型 說明

SiteSubscription

必要

Microsoft.SharePoint.PowerShell.SPSiteSubscriptionPipeBind

WebApplication

必要

Microsoft.SharePoint.PowerShell.SPWebApplicationPipeBind

AssignmentCollection

選用

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

輸入類型

傳回類型

範例

--------範例 1------

Get-SPOfficeStoreAppsDefaultActivation -WebApplication http://sphvm-8044 

此範例會傳回 Web 應用程式 http://sphvm-8044 的設定。

--------範例 2------

Get-SPOfficeStoreAppsDefaultActivation -SiteSubscription efca5b88-b3a3-448d-afbc-ef620f4744f1

此範例會傳回承租人的訂閱識別碼設定

另請參閱

Set-SPOfficeStoreAppsDefaultActivation

  jj219662(v=office.16).md