Set-SPAppStateUpdateInterval

アプリケーション状態の更新ジョブを実行する間隔 (時間単位) を設定します。

構文

Set-SPAppStateUpdateInterval
   -AppStateSyncHours <Int32>
   -FastAppRevocationHours <Int32>
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

説明

このコマンドレットを Set-SPAppStateUpdateInterval 使用して、アプリ状態更新ジョブの更新間隔を時間単位で設定します。 アプリの状態更新ジョブは、SharePoint Store の情報に基づいて、SharePoint でアプリの状態 (アプリの更新を含む) を更新します。

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

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

Set-SPAppStateUpdateInterval -AppStateSyncHours 24 -FastAppRevocationHours 6

この例では、アプリケーション状態の更新間隔を 24 時間に、高速アプリケーションの失効間隔を 6 時間に設定します。

パラメーター

-AppStateSyncHours

アプリケーション状態の更新間隔 (時間単位) を指定します。 1 ~ 24 の範囲内の値を使用します。

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

-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

Prompts you for confirmation before executing the command. For more information, type the following command: get-help about_commonparameters

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

-FastAppRevocationHours

Specifies the interval in hours between checks of the list of revoked apps in the SharePoint Store. If the list of revoked apps has changed from the last time, the app states are updated.

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

-WhatIf

Displays a message that describes the effect of the command instead of executing the command. For more information, type the following command: get-help about_commonparameters

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