Set-SPTranslationServiceApplication
设置 Machine Translation Service 应用程序的属性设置。
语法
Default (默认值)
Set-SPTranslationServiceApplication
[-Identity] <TranslationServiceApplicationPipeBind>
[-AddEnabledFileExtensions <String[]>]
[-ApplicationPool <SPIisWebServiceApplicationPoolPipeBind>]
[-AssignmentCollection <SPAssignmentCollection>]
[-ClearEnabledFileExtensions]
[-Confirm]
[-DatabaseCredential <PSCredential>]
[-DatabaseName <String>]
[-DatabaseServer <String>]
[-DisableBinaryFileScan <Boolean>]
[-EnableAllFileExtensions]
[-FailoverDatabaseServer <String>]
[-JobExpirationDays <Int32>]
[-KeepAliveTimeout <Int32>]
[-MachineTranslationAddress <String>]
[-MachineTranslationCategory <String>]
[-MachineTranslationClientId <String>]
[-MaximumBinaryFileSize <Int32>]
[-MaximumItemsPerDay <Int32>]
[-MaximumItemsPerPartitionPerDay <Int32>]
[-MaximumSyncTranslationRequests <Int32>]
[-MaximumTextFileSize <Int32>]
[-MaximumTranslationAttempts <Int32>]
[-MaximumTranslationTime <Int32>]
[-MaximumWordCharacterCount <Int32>]
[-RecycleProcessThreshold <Int32>]
[-RemoveEnabledFileExtensions <String[]>]
[-TimerJobFrequency <Int32>]
[-TotalActiveProcesses <Int32>]
[-TranslationsPerInstance <Int32>]
[-UseDefaultInternetSettings]
[-WebProxyAddress <String>]
[-WhatIf]
[<CommonParameters>]
说明
Set-SPTranslationServiceApplication使用 cmdlet 在场中的机器翻译服务应用程序上设置属性。
有关适用于 SharePoint 产品的 Windows PowerShell 的权限和最新信息,请参阅 SharePoint Server cmdlet。
示例
例
Set-SPTranslationServiceApplication TranslationService -JobExpirationDays 14 -TotalActiveProcesses 3
此示例将作业到期日期设置为 14 天,将名为 TranslationService 的机器翻译服务应用程序的每服务器的工作进程数量设置为 3。
参数
-AddEnabledFileExtensions
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
要添加到机器翻译服务应用程序支持的文件扩展名集的文件扩展名的以逗号分隔的列表
若要返回支持的文件扩展名的列表,请键入 [Microsoft.Office.TranslationServices.TranslationService]::EnumerateFileExtensions()。
参数属性
| 类型: | String[] |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-ApplicationPool
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定将在其中运行翻译服务实例的托管应用程序池。
参数属性
| 类型: | SPIisWebServiceApplicationPoolPipeBind |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-AssignmentCollection
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
管理对象以便正确进行处理。 使用 SPWeb 或 SPSite 等对象可能会耗用大量内存,而且在 Windows PowerShell 脚本中使用这些对象需要正确管理内存。 通过使用 SPAssignment 对象,可以将对象分配给变量,然后在不需要这些对象时对它们进行处理,以释放内存。 在使用 SPWeb、SPSite 或 SPSiteAdministration 对象时,如果不使用分配集合或 Global 参数,则会自动处理这些对象。
使用全局参数时,所有对象均包含在全局存储中。
如果未立即使用对象,或未通过使用 Stop-SPAssignment 命令来处理对象,则可能会发生内存不足的情况。
参数属性
| 类型: | SPAssignmentCollection |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-ClearEnabledFileExtensions
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
禁用机器翻译服务应用程序的所有文件扩展名。
参数属性
| 类型: | SwitchParameter |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-Confirm
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
执行命令前,看到确认提示。
有关详细信息,请键入以下命令:get-help about_commonparameters
参数属性
| 类型: | SwitchParameter |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
| 别名: | cf |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-DatabaseCredential
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定用于此翻译服务实例的SQL Server凭据。 此参数仅用于 SQL 身份验证;如果未提供,则将改用 Windows 身份验证。
参数属性
| 类型: | PSCredential |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-DatabaseName
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定将用于此翻译服务实例的数据库名称。
参数属性
| 类型: | String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-DatabaseServer
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定将用于此翻译服务实例的数据库服务器。
参数属性
| 类型: | String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-DisableBinaryFileScan
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
确定是否对二进制文件运行网关守卫。
参数属性
| 类型: | Boolean |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-EnableAllFileExtensions
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
启用机器翻译服务应用程序的所有文件扩展名。
参数属性
| 类型: | SwitchParameter |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-FailoverDatabaseServer
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定将用作主 SQL Server 实例的一个备份的 SQL Server 实例。
参数属性
| 类型: | String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-Identity
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定要设置的机器翻译服务实例的 URL 或 GUID。
类型必须是表单中的有效 URL 或 https://server_name 有效的 GUID (,例如 12345678-90ab-cdef-1234-567890bcdefgh) 。
参数属性
| 类型: | TranslationServiceApplicationPipeBind |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | 1 |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
-JobExpirationDays
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定天数,在这之后,将从机器翻译服务队列数据库中自动删除已完成作业。
参数属性
| 类型: | Int32 |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-KeepAliveTimeout
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定工作线程在自动停止前可处于非活动状态的时间长度(秒)。
有效值为 60 至 600。 默认值为 60。
参数属性
| 类型: | Int32 |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-MachineTranslationAddress
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定此服务应用程序将用于调用翻译提供程序的服务 URL。 例如,https://api.microsofttranslator.com/v2/soap.svc
参数属性
| 类型: | String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-MachineTranslationCategory
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定此服务调用翻译提供程序时将使用的目录。
参数属性
| 类型: | String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-MachineTranslationClientId
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定此服务调用翻译提供程序时将使用的 AppId。
参数属性
| 类型: | String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-MaximumBinaryFileSize
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定可为包含二进制数据的文件类型翻译的最大文件大小(千字节)(KB)。 有效值为 100 至 524288。 默认值为 51200。
参数属性
| 类型: | Int32 |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-MaximumItemsPerDay
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定每 24 小时可添加到作业队列的最大项目数。 值 0 指示没有限制。
有效值为 1000 到 1000000。 值 0 指示没有限制。 默认值为 0。
参数属性
| 类型: | Int32 |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-MaximumItemsPerPartitionPerDay
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定每分区每 24 小时可添加到作业队列的最大项目数。 值 0 指示没有限制。
有效值为 1000 到 1000000。 值 0 指示没有限制。 默认值为 0。
参数属性
| 类型: | Int32 |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-MaximumSyncTranslationRequests
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定可添加到同步队列的最大项目数。 有效值 0 指示没有限制。
有效值为 0 至 300。 默认值为 10。
参数属性
| 类型: | Int32 |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-MaximumTextFileSize
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定可为大部分包含文本数据的文件类型翻译的最大文件大小(千字节)(KB)。 有效值为 100 至 15360。 默认值为 5120。
参数属性
| 类型: | Int32 |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-MaximumTranslationAttempts
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定未成功的作业在标记为失败前的最大尝试次数。
有效值为 1 至 10。 默认值为 2。
参数属性
| 类型: | Int32 |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-MaximumTranslationTime
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定翻译可执行的最长时间长度(分钟)。
有效值为 60 至 3600。 默认值为 600。
参数属性
| 类型: | Int32 |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-MaximumWordCharacterCount
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定可翻译的 Microsoft Word 文档的最大字符数。
有效 Int 值为 10000 至 10000000。 默认值为 500000。
参数属性
| 类型: | Int32 |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-RecycleProcessThreshold
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定在回收翻译工作进程之前翻译的文档的数量。
有效值为 1 至 1,000。 默认值为 100。
参数属性
| 类型: | Int32 |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-RemoveEnabledFileExtensions
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
要从机器翻译服务应用程序支持的文件扩展名集中删除的文件扩展名的以逗号分隔的列表。
若要返回支持的文件扩展名的列表,请键入 [Microsoft.Office.TranslationServices.TranslationService]::EnumerateFileExtensions()。
参数属性
| 类型: | String[] |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-TimerJobFrequency
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定此服务应用程序运行计时器作业的频率(分钟)。 有效值为 1 至 59。 默认值为 15 分钟。
参数属性
| 类型: | Int32 |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-TotalActiveProcesses
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定一台计算机上同时运行的翻译工作线程的数量。
有效值为 1 至 5。 默认值为 1。
参数属性
| 类型: | Int32 |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-TranslationsPerInstance
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定计时器作业每次运行时每个服务实例调度的翻译数量。
有效值为 1 至 1,000。 默认值为 200。
参数属性
| 类型: | Int32 |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-UseDefaultInternetSettings
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
确定此服务应用程序是否将使用用户服务帐户的默认 Internet 设置连接到翻译提供程序。
参数属性
| 类型: | SwitchParameter |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-WebProxyAddress
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
指定此服务应用程序将用于连接到翻译提供程序的 Web 代理地址和端口。
参数属性
| 类型: | String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-WhatIf
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
显示一条描述命令作用的消息,而不执行命令。
有关详细信息,请键入以下命令:get-help about_commonparameters
参数属性
| 类型: | SwitchParameter |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
| 别名: | 无线 |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。