Set-SPWorkManagementServiceApplication

Sets settings for the Work Management Service application.

Syntax

Set-SPWorkManagementServiceApplication
   [-Identity] <SPWorkManagementServiceCmdletPipeBind>
   [-ApplicationPool <SPIisWebServiceApplicationPoolPipeBind>]
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Confirm]
   [-MinimumTimeBetweenProviderRefreshes <TimeSpan>]
   [-MinimumTimeBetweenSearchQueries <TimeSpan>]
   [-Name <String>]
   [-WhatIf]
   [-MinimumTimeBetweenEwsSyncSubscriptionSearches <TimeSpan>]
   [-NumberOfSubscriptionSyncsPerEwsSyncRun <UInt32>]
   [-NumberOfUsersEwsSyncWillProcessAtOnce <UInt32>]
   [-NumberOfUsersPerEwsSyncBatch <UInt32>]
   [<CommonParameters>]

Description

Use the Set-SPWorkManagementServiceApplication cmdlet to set settings (that is, minimum time between refreshes for aggregating tasks and load per machine for synchronization with Exchange) for the specified Work Management Service Application by using the Identity parameter.

For permissions and the most current information about Windows PowerShell for SharePoint Products, see the online documentation at SharePoint Server Cmdlets.

Examples

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

C:\PS>$wmservice = Get-SPServiceApplication -Name "Work Management Service Application"

C:\PS>$refreshTime = New-Timespan -Minutes 10

Set-SPWorkManagementServiceApplication -Identity $wmservice -MinimumTimeBetweenProviderRefreshes $refreshTime

This example sets the minimum time between provider refreshes to 10 minutes on the service application named "Work Management Service Application".

Parameters

-ApplicationPool

Specifies the name of an application pool to use; for example, SharePoint - 1213. If no value is specified, the default application pool is used.

Type:SPIisWebServiceApplicationPoolPipeBind
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-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
Required:False
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-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
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-Identity

Specifies the service application to update.

The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a subscription settings service application (for example, SubSettingsApp1); or an instance of a valid SPWorkManagementServiceApplication object

Type:SPWorkManagementServiceCmdletPipeBind
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-MinimumTimeBetweenEwsSyncSubscriptionSearches

This value specifies the minimum amount of time between calls into our routine that tries to find new tenants that want to sync EWS tasks.

Type:TimeSpan
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-MinimumTimeBetweenProviderRefreshes

Specifies the minimum amount of time between cache update operations per user. If this time has not passed since the last successful refresh request for a user, the service application does not execute new refresh requests.

Type:TimeSpan
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-MinimumTimeBetweenSearchQueries

Specifies the minimum amount of time between calls to the Search Service application to discover new SharePoint task lists where a user has tasks. If this time has not passed since the last successful call to Search for a user, the service application does not call Search during refresh operations.

Type:TimeSpan
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-Name

Specifies the name of the Work Management Service application.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-NumberOfSubscriptionSyncsPerEwsSyncRun

This value specifies the maximum number of tenants the service will try to sync via EWS per Timer job interval

Type:UInt32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-NumberOfUsersEwsSyncWillProcessAtOnce

This value specifies the maximum number of users a service instance machine will sync via EWS at one time across all tenants.

Type:UInt32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-NumberOfUsersPerEwsSyncBatch

This value specifies the maximum number of users a service instance will try to sync on a given tenant via EWS per Timer job interval

Type:UInt32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-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
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016