Set-SPOfficeStoreAppsDefaultActivation

 

**適用先:**SharePoint Server 2016

Sets the properties of Office 用アプリ.

構文

Set-SPOfficeStoreAppsDefaultActivation -Enable <$true | $false> -WebApplication <SPWebApplicationPipeBind> [-AssignmentCollection <SPAssignmentCollection>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]]

Set-SPOfficeStoreAppsDefaultActivation -Enable <$true | $false> -SiteSubscription <SPSiteSubscriptionPipeBind> [-AssignmentCollection <SPAssignmentCollection>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]]

Detailed Description

このコマンドレットには、複数のパラメーター セットが含まれています。使用できるのは、1 つのパラメーター セットのパラメーターだけであり、異なるパラメーター セットのパラメーターを組み合わせることはできません。パラメーター セットの使用法に関する詳しい情報については、「コマンドレット パラメーター セット」を参照してください。

Use the Set-SPOfficeStoreAppsDefaultActivation cmdlet to set app settings for Office that are on the Office ストア and would be started when the document that contains those apps in their browser is opened.

Windows PowerShell for SharePoint 製品のアクセス許可と最新情報については、「Windows PowerShell for SharePoint Server 2016 リファレンス」のオンライン ドキュメントをご覧ください。

パラメーター

Parameter Required Type Description

Enable

Required

System.Boolean

Specifies whether the Office 用アプリ from the Office ストア should be started.

SiteSubscription

Required

Microsoft.SharePoint.PowerShell.SPSiteSubscriptionPipeBind

Specifies the Site Group to which the settings apply.

WebApplication

Required

Microsoft.SharePoint.PowerShell.SPWebApplicationPipeBind

Specifies the URL, GUID, or name of the web application to which the setting applies.

AssignmentCollection

Optional

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

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

注意

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

Confirm

Optional

System.Management.Automation.SwitchParameter

コマンドを実行する前に、確認のメッセージを表示します。詳細を表示するには、「 get-help about_commonparameters 」と入力します。

WhatIf

Optional

System.Management.Automation.SwitchParameter

コマンドを実行する代わりに、コマンドの実行結果を説明するメッセージを表示します。詳細を表示するには、「 get-help about_commonparameters 」と入力します。

Input Types

Return Types

-------EXAMPLE------

Set-SPOfficeStoreAppsDefaultActivation -SiteSubscription efca5b88-b3a3-448d-afbc-ef620f4744f1 -Enable $true

This example enables the Office 用アプリ from the Office ストア Office client that uses the subscription id, efca5b88-b3a3-448d-afbc-ef620f4744f1.

関連項目

Get-SPOfficeStoreAppsDefaultActivation