Set-SPTranslationServiceApplication
设置 Machine Translation Service 应用程序的属性设置。
语法
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
要添加到机器翻译服务应用程序支持的文件扩展名集的文件扩展名的以逗号分隔的列表
若要返回支持的文件扩展名的列表,请键入 [Microsoft.Office.TranslationServices.TranslationService]::EnumerateFileExtensions()。
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-ApplicationPool
指定将在其中运行翻译服务实例的托管应用程序池。
Type: | SPIisWebServiceApplicationPoolPipeBind |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-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 |
-ClearEnabledFileExtensions
禁用机器翻译服务应用程序的所有文件扩展名。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-Confirm
执行命令前,看到确认提示。
有关详细信息,请键入以下命令: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 Subscription Edition |
-DatabaseCredential
指定用于此翻译服务实例的SQL Server凭据。 此参数仅用于 SQL 身份验证;如果未提供,则将改用 Windows 身份验证。
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-DatabaseName
指定将用于此翻译服务实例的数据库名称。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-DatabaseServer
指定将用于此翻译服务实例的数据库服务器。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-DisableBinaryFileScan
确定是否对二进制文件运行网关守卫。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-EnableAllFileExtensions
启用机器翻译服务应用程序的所有文件扩展名。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-FailoverDatabaseServer
指定将用作主 SQL Server 实例的一个备份的 SQL Server 实例。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-Identity
指定要设置的机器翻译服务实例的 URL 或 GUID。
类型必须是表单中的有效 URL 或 https://server_name 有效的 GUID (,例如 12345678-90ab-cdef-1234-567890bcdefgh) 。
Type: | TranslationServiceApplicationPipeBind |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-JobExpirationDays
指定天数,在这之后,将从机器翻译服务队列数据库中自动删除已完成作业。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-KeepAliveTimeout
指定工作线程在自动停止前可处于非活动状态的时间长度(秒)。
有效值为 60 至 600。 默认值为 60。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-MachineTranslationAddress
指定此服务应用程序将用于调用翻译提供程序的服务 URL。 例如,https://api.microsofttranslator.com/v2/soap.svc
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-MachineTranslationCategory
指定此服务调用翻译提供程序时将使用的目录。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-MachineTranslationClientId
指定此服务调用翻译提供程序时将使用的 AppId。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-MaximumBinaryFileSize
指定可为包含二进制数据的文件类型翻译的最大文件大小(千字节)(KB)。 有效值为 100 至 524288。 默认值为 51200。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-MaximumItemsPerDay
指定每 24 小时可添加到作业队列的最大项目数。 值 0 指示没有限制。
有效值为 1000 到 1000000。 值 0 指示没有限制。 默认值为 0。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-MaximumItemsPerPartitionPerDay
指定每分区每 24 小时可添加到作业队列的最大项目数。 值 0 指示没有限制。
有效值为 1000 到 1000000。 值 0 指示没有限制。 默认值为 0。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-MaximumSyncTranslationRequests
指定可添加到同步队列的最大项目数。 有效值 0 指示没有限制。
有效值为 0 至 300。 默认值为 10。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-MaximumTextFileSize
指定可为大部分包含文本数据的文件类型翻译的最大文件大小(千字节)(KB)。 有效值为 100 至 15360。 默认值为 5120。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-MaximumTranslationAttempts
指定未成功的作业在标记为失败前的最大尝试次数。
有效值为 1 至 10。 默认值为 2。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-MaximumTranslationTime
指定翻译可执行的最长时间长度(分钟)。
有效值为 60 至 3600。 默认值为 600。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-MaximumWordCharacterCount
指定可翻译的 Microsoft Word 文档的最大字符数。
有效 Int 值为 10000 至 10000000。 默认值为 500000。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-RecycleProcessThreshold
指定在回收翻译工作进程之前翻译的文档的数量。
有效值为 1 至 1,000。 默认值为 100。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-RemoveEnabledFileExtensions
要从机器翻译服务应用程序支持的文件扩展名集中删除的文件扩展名的以逗号分隔的列表。
若要返回支持的文件扩展名的列表,请键入 [Microsoft.Office.TranslationServices.TranslationService]::EnumerateFileExtensions()。
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-TimerJobFrequency
指定此服务应用程序运行计时器作业的频率(分钟)。 有效值为 1 至 59。 默认值为 15 分钟。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-TotalActiveProcesses
指定一台计算机上同时运行的翻译工作线程的数量。
有效值为 1 至 5。 默认值为 1。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-TranslationsPerInstance
指定计时器作业每次运行时每个服务实例调度的翻译数量。
有效值为 1 至 1,000。 默认值为 200。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-UseDefaultInternetSettings
确定此服务应用程序是否将使用用户服务帐户的默认 Internet 设置连接到翻译提供程序。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-WebProxyAddress
指定此服务应用程序将用于连接到翻译提供程序的 Web 代理地址和端口。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-WhatIf
显示一条描述命令作用的消息,而不执行命令。
有关详细信息,请键入以下命令: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 Subscription Edition |