Set-SPProjectPCSSettings

Sets the settings for the Project Calculation Engine on Project Server.

Syntax

Set-SPProjectPCSSettings
   [-ServiceApplication <PsiServiceApplicationPipeBind>]
   [-AssignmentCollection <SPAssignmentCollection>]
   [-CachePersistence <Int32>]
   [-EditingSessionTimeout <Int32>]
   [-MaximumIdleWorkersCount <Int32>]
   [-MaximumProjectSize <Int32>]
   [-MaximumSessionsPerUser <Int32>]
   [-MaximumWorkersCount <Int32>]
   [-MinimumMemoryRequired <Int32>]
   [-RequestTimeLimits <Int32>]
   [-NetTcpPort <Int32>]
   [<CommonParameters>]

Description

The Set-SPProjectPCSSettings cmdlet lets you configure the different settings that govern the operations of the Project Calculation Engine on Project Server. The settings are per service application, which is identified by the Service Application parameter provided to this cmdlet. The settings have maximum and minimum values that are enforced by Project Server.

For permissions and the most current information about Windows PowerShell for Project Server, see the online documentation at https://go.microsoft.com/fwlink/p/?LinkId=251833 (https://go.microsoft.com/fwlink/p/?LinkId=251833).

Examples

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

Set-SPProjectPCSSettings -sa "Project Service Application" -MaximumSessionsPerUser 500

This example sets 500 as the maximum allowed Project Calculation Engine sessions that a user can open on the "Project Service Application" service application.

Parameters

-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 Subscription Edition

-CachePersistence

The maximum length of time before the Project Calculation Engine can begin to remove temporary cache files of projects opened on the Project Server service application.

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

-EditingSessionTimeout

The maximum length of time that a user can be idle in a Project Calculation Engine session before a timeout occurs.

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

-MaximumIdleWorkersCount

The maximum number of idle Project Calculation Engine sessions available at a given time.

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

-MaximumProjectSize

The maximum size of a project that can be opened by the Project Calculation Engine.

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

-MaximumSessionsPerUser

The maximum number of sessions that a user is allowed to open.

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

-MaximumWorkersCount

The maximum number of Project Calculation Engine sessions that can be created.

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

-MinimumMemoryRequired

The minimum memory required before launching a new Project Calculation Engine session.

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

-NetTcpPort

The TCP port to use with the PCS service.

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

-RequestTimeLimits

The maximum allowable time for a request to the Project Calculation Engine to complete before the Project Calculation Engine session is terminated.

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

-ServiceApplication

The Project Server service application for which the settings are to be read.

Type:PsiServiceApplicationPipeBind
Aliases:sa
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition