Set-SPTranslationServiceApplication
設定機器翻譯服務應用程式的屬性設定。
Syntax
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>]
Description
使用 Cmdlet Set-SPTranslationServiceApplication
在伺服器陣列中的 Machine Translation 服務應用程式上設定屬性。
如需適用於 SharePoint 產品的 Windows PowerShell 權限及最新資訊,請參閱線上文件 SharePoint Server Cmdlet。
範例
---------------範例---------------
Set-SPTranslationServiceApplication TranslationService -JobExpirationDays 14 -TotalActiveProcesses 3
本範例會將名為 TranslationService 之 Machine Translation Service 應用程式的作業到期日設定為 14 天,並將每部伺服器的背景工作進程數目設定為 3。
參數
-AddEnabledFileExtensions
您想要新增至 Machine Translation Service 應用程式的已啟用副檔名集合的副檔名逗號分隔清單
若要傳回支援的副檔名清單,請輸入 [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 2013, SharePoint Server 2016, SharePoint Server 2019 |
-ApplicationPool
指定翻譯服務實例將在其中執行的受控應用程式集區。
Type: | SPIisWebServiceApplicationPoolPipeBind |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-AssignmentCollection
管理物件以適當處置它們。 使用 SPWeb 或 SPSite 等物件可能會耗用大量的記憶體,因此在 Windows PowerShell 指令碼中使用這些物件時,必須適當地管理記憶體。 您可以使用 SPAssignment 物件將物件指派給變數,並在不需要時處置這些物件,以釋放記憶體。 使用 SPWeb、SPSite 或 SPSiteAdministration 物件時,若未使用指派集合或 Global 參數,將會自動處置這些物件。
使用 Global 參數時,所有物件會包含在全域儲存區內。
如果不立即使用物件,或使用 Stop-SPAssignment
命令加以捨棄,則可能會有記憶體不足的狀況發生。
Type: | SPAssignmentCollection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-ClearEnabledFileExtensions
停用 Machine Translation Service 應用程式的所有副檔名。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-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 2013, SharePoint Server 2016, SharePoint Server 2019 |
-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 2013, SharePoint Server 2016, SharePoint Server 2019 |
-DatabaseName
指定要用於這個翻譯服務實例的資料庫名稱。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-DatabaseServer
指定要用於這個翻譯服務實例的資料庫伺服器。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-DisableBinaryFileScan
判斷 Gatekeeper 是否在二進位檔案上執行。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-EnableAllFileExtensions
啟用 Machine Translation Service 應用程式的所有副檔名。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-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 2013, SharePoint Server 2016, SharePoint Server 2019 |
-Identity
指定要設定之 Machine Translation 服務實例的 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 2013, SharePoint Server 2016, SharePoint Server 2019 |
-JobExpirationDays
指定完成的作業可以從 Machine Translation Service 佇列資料庫自動移除的天數。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-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 2013, SharePoint Server 2016, SharePoint Server 2019 |
-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 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MachineTranslationCategory
指定呼叫翻譯提供者時,服務將使用的類別。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MachineTranslationClientId
指定呼叫翻譯提供者時,服務將使用的 AppId。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-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 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MaximumItemsPerDay
指定可在 24 小時內新增至作業佇列的專案數目上限。 值為零表示沒有限制。
有效值為 1000 到 1000000。 值為零表示沒有限制。 預設值為零。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MaximumItemsPerPartitionPerDay
指定每個分割區可在 24 小時內新增至作業佇列的專案數目上限。 值為零表示沒有限制。
有效值為 1000 到 1000000。 值為零表示沒有限制。 預設值為零。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MaximumSyncTranslationRequests
指定可新增至同步佇列的專案數目上限。 有效值為零表示沒有限制。
有效值為 0 到 300。 預設值為 10。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MaximumTextFileSize
指定以 KB (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 2013, SharePoint Server 2016, SharePoint Server 2019 |
-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 2013, SharePoint Server 2016, SharePoint Server 2019 |
-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 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MaximumWordCharacterCount
指定可翻譯之Microsoft Word 檔的最大字元計數。
有效的 Int 值為 10000 到 100000000。 預設值為 500000。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-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 2013, SharePoint Server 2016, SharePoint Server 2019 |
-RemoveEnabledFileExtensions
您想要從 Machine Translation Service 應用程式的已啟用副檔名集中移除的副檔名逗號分隔清單。
若要傳回支援的副檔名清單,請輸入 [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 2013, SharePoint Server 2016, SharePoint Server 2019 |
-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 2013, SharePoint Server 2016, SharePoint Server 2019 |
-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 2013, SharePoint Server 2016, SharePoint Server 2019 |
-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 2013, SharePoint Server 2016, SharePoint Server 2019 |
-UseDefaultInternetSettings
判斷服務應用程式是否會使用使用者服務帳戶的預設網際網路設定來連線到翻譯提供者。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-WebProxyAddress
指定服務應用程式將用來連線到翻譯提供者的 Web Proxy 位址和埠。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-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 2013, SharePoint Server 2016, SharePoint Server 2019 |