Set-SPProjectPCSSettings
设置 Project Server 上项目计算引擎的设置。
语法
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>]
说明
cmdlet Set-SPProjectPCSSettings
允许配置用于控制 Project Server 上项目计算引擎操作的不同设置。
这些设置因每个服务应用程序而异,每个服务应用程序则由提供给此 cmdlet 的服务应用程序参数标识。
这些设置具有 Project Server 强制实施的最大值和最小值。
有关 Project Server 的权限和Windows PowerShell的最新信息,请参阅 () https://go.microsoft.com/fwlink/p/?LinkId=251833 中的联机文档https://go.microsoft.com/fwlink/p/?LinkId=251833。
示例
----------------------例子-----------------------
Set-SPProjectPCSSettings -sa "Project Service Application" -MaximumSessionsPerUser 500
此示例将 500 设置为用户可在 "Project Service Application" 服务应用程序上打开的允许的最大 Project 计算引擎会话数量。
参数
-AssignmentCollection
管理对象以便正确进行处理。 使用 SPWeb 或 SPSite 等对象可能会耗用大量内存,而且在 Windows PowerShell 脚本中使用这些对象需要正确管理内存。 通过使用 SPAssignment 对象,可以将对象分配给变量,然后在不需要这些对象时对它们进行处理,以释放内存。 在使用 SPWeb、SPSite 或 SPSiteAdministration 对象时,如果不使用分配集合或 Global 参数,则会自动处理这些对象。
使用全局参数时,所有对象均包含在全局存储中。
如果未立即使用对象,或未通过使用 Stop-SPAssignment
命令来处理对象,则可能会发生内存不足的情况。
Type: | SPAssignmentCollection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-CachePersistence
项目计算引擎开始删除 Project Server 服务应用程序中打开的项目的临时缓存文件之前的最大时间长度。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-EditingSessionTimeout
超时发生前用户可以在 Project 计算引擎会话中处于空闲状态的最长时间。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-MaximumIdleWorkersCount
在给定时间可用的空闲 Project 计算引擎会话的最大数目。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-MaximumProjectSize
Project 计算引擎可以打开的项目的最大大小。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-MaximumSessionsPerUser
允许用户打开的会话的最多数目。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-MaximumWorkersCount
可以创建的 Project 计算引擎会话的最多数目。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-MinimumMemoryRequired
启动新的 Project 计算引擎会话前所需的最小内存。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-NetTcpPort
使用 PCS 服务的 TCP 端口。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-RequestTimeLimits
在 Project 计算引擎会话终止前完成 Project 计算引擎请求的最长允许时间。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-ServiceApplication
要读取其设置的 Project Server 服务应用程序。
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 |