Set-SPWordViewingServiceApplication
适用于: Word Online
上一次修改主题: 2015-03-09
设置 Word Viewing Service 应用程序的全局属性。
Syntax
Set-SPWordViewingServiceApplication [-Identity] <SPServiceApplicationPipeBind> [-AssignmentCollection <SPAssignmentCollection>] [-Confirm [<SwitchParameter>]] [-DisableBinaryScan <SwitchParameter>] [-DisableEmbeddedFonts <SwitchParameter>] [-EnableBinaryFormatSupport <SwitchParameter>] [-EnableOpenXmlFormatSupport <SwitchParameter>] [-KeepAliveTimeoutInSeconds <Int32>] [-LocalCacheStoreDirectory <String>] [-LocalCacheTimeoutInSeconds <Int32>] [-MaxActiveProcessCount <Int32>] [-MaxRenderingLifetimeInSeconds <Int32>] [-RecycleActiveProcessCount <Int32>] [-WhatIf [<SwitchParameter>]]
详细说明
Set-SPWordViewingServiceApplication cmdlet 将更改 Word Viewing Service 应用程序的全局运行时属性。
有关 Windows PowerShell for Office Web Apps 的权限和最新信息,请参阅 TechNet (https://go.microsoft.com/fwlink/?LinkId=164432)。
Parameters
参数 | 是否必需 | 类型 | 说明 |
---|---|---|---|
Identity |
必需 |
Microsoft.SharePoint.PowerShell.SPServiceApplicationPipeBind |
指定服务应用程序的唯一标识。 |
AssignmentCollection |
可选 |
Microsoft.SharePoint.PowerShell.SPAssignmentCollection |
管理对象以便正确进行处理。使用 SPWeb 或 SPSite 等对象可能会耗用大量内存,而且在 Windows PowerShell 脚本中使用这些对象需要正确管理内存。通过使用 SPAssignment 对象,可以将对象分配给变量,然后在不需要这些对象时对它们进行处理,以释放内存。在使用 SPWeb、SPSite 或 SPSiteAdministration 对象时,如果不使用分配集合或 Global 参数,则会自动处理这些对象。 备注 在使用 Global 参数时,所有对象均包含在全局存储中。如果未立即使用对象,或未通过使用 Stop-SPAssignment 命令来处理对象,则可能会发生内存不足的情况。 |
Confirm |
可选 |
System.Management.Automation.SwitchParameter |
在执行命令之前提示您确认。有关详细信息,请键入以下命令:get-help about_commonparameters |
DisableBinaryScan |
可选 |
System.Management.Automation.SwitchParameter |
禁止二进制文档扫描查找损坏的或其他恶意内容。有效值为 True 或 False。默认值为 False。 |
DisableEmbeddedFonts |
可选 |
System.Management.Automation.SwitchParameter |
禁用在 Microsoft Word 文档中呈现嵌入字体的支持。 有效值为 True 或 False。默认值为 False。 |
EnableBinaryFormatSupport |
可选 |
System.Management.Automation.SwitchParameter |
启用 Word Viewing Service 应用程序中的二进制文件格式支持。值为 True 或 False。默认值为 True。 |
EnableOpenXmlFormatSupport |
可选 |
System.Management.Automation.SwitchParameter |
启用 Word Viewing Service 应用程序中对基于 XML 的文件格式的支持。 值为 True 或 False。默认值为 True。 |
KeepAliveTimeoutInSeconds |
可选 |
System.Int32 |
指定工作进程在被终止前允许无响应的时间长度(秒)。对此设置进行的更改要求使用 IISReset 命令才能生效。 键入的值必须为整数,范围为 5 至 3600。 |
LocalCacheStoreDirectory |
可选 |
System.String |
指定供 Word Viewing Service 应用程序使用的临时缓存的位置。对此设置进行的更改要求使用 IISReset 命令才能生效。默认值为 %temp%\waccache.。 |
LocalCacheTimeoutInSeconds |
可选 |
System.Int32 |
指定输出文件在应用程序服务器上保持的时间长度(秒)。对此设置进行的更改要求使用 IISReset 命令才能生效。 默认值为 300。 |
MaxActiveProcessCount |
可选 |
System.Int32 |
指定可用于呈现 Word 文档的活动进程数。默认值为 3。 对此参数进行的更改要求使用 IISReset 命令才能生效。 |
MaxRenderingLifetimeInSeconds |
可选 |
System.Int32 |
指定允许工作进程处理特定呈现的总时间(秒)。对此设置进行的更改要求使用 IISReset 才能生效。 |
RecycleActiveProcessCount |
可选 |
System.Int32 |
指定允许单一进程在 Word Viewing Service 应用程序回收该进程前呈现的文件数。对此设置进行的更改要求使用 IISReset 命令才能生效。 默认值为 5。 |
WhatIf |
可选 |
System.Management.Automation.SwitchParameter |
显示一条描述命令作用的消息,而不执行命令。有关详细信息,请键入以下命令:get-help about_commonparameters |
输入类型
返回类型
Example
---------------示例 1-----------
Get-SPIisWebServiceApplicationPool -Identity "SharePoint Web Services System" | New-SPWordViewingServiceApplication -Name "My Service Application" | Set-SPWordViewingServiceApplication -MaxActiveProcessCount 10 -LocalCacheStoreDirectory "C:\temp"
此示例将新建一个 Word Viewing Service 应用程序,将可用于呈现的最大进程数设置为 10
,并将本地缓存目录设置为 C:\temp
。