Set-SPAppStateUpdateInterval

设置应用程序状态更新作业的各个更新之间的时间间隔(以小时为单位)。

语法

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

说明

Set-SPAppStateUpdateInterval使用 cmdlet 设置应用状态更新作业更新之间的间隔(以小时为单位)。 应用状态更新作业基于 SharePoint 应用商店中的信息更新 SharePoint 中的应用状态,包括应用更新。

有关适用于 SharePoint 产品的 Windows PowerShell 的权限和最新信息,请参阅 SharePoint Server cmdlet

示例

-------------示例--------------

Set-SPAppStateUpdateInterval -AppStateSyncHours 24 -FastAppRevocationHours 6

此示例将应用程序状态更新时间间隔设置为 24 小时,并将应用程序吊销的最短时间间隔设置为 6 小时。

参数

-AppStateSyncHours

指定应用程序状态的各个更新之间的时间间隔(以小时为单位)。 值为 1 到 24(含 1 和 24)。

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
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

-工作分配

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