Set-SPWordConversionServiceApplication
設定 Word Automation Services 應用程式。
Syntax
Set-SPWordConversionServiceApplication
[-Identity] <WordServiceApplicationPipeBind>
[-ActiveProcesses <Int32>]
[-AddSupportedFormats <String[]>]
[-ApplicationPool <SPIisWebServiceApplicationPoolPipeBind>]
[-AssignmentCollection <SPAssignmentCollection>]
[-ClearSupportedFormats]
[-Confirm]
[-ConversionsPerInstance <Int32>]
[-ConversionTimeout <Int32>]
[-DatabaseCredential <PSCredential>]
[-DatabaseName <String>]
[-DatabaseServer <String>]
[-DisableBinaryFileScan]
[-DisableEmbeddedFonts]
[-KeepAliveTimeout <Int32>]
[-MaximumConversionAttempts <Int32>]
[-MaximumConversionTime <Int32>]
[-MaximumMemoryUsage <Int32>]
[-RecycleProcessThreshold <Int32>]
[-RemoveSupportedFormats <String[]>]
[-TimerJobFrequency <Int32>]
[-WhatIf]
[-MaximumGroupSize <Int32>]
[-MaximumSyncConversionRequests <Int32>]
[<CommonParameters>]
Description
此 Set-SPWordConversionServiceApplication
Cmdlet 會設定 Word Automation Services 應用程式的全域屬性。
如需適用於 SharePoint 產品的 Windows PowerShell 權限及最新資訊,請參閱線上文件 SharePoint Server Cmdlet。
範例
-----------例子-----------------
Get-SPServiceApplication -Name WordServices1 | Set-SPWordConversionServiceApplication -TimerJobFrequency 30
本範例會將 WordServices1 應用程式的計時器工作頻率設定為 30 分鐘。
參數
-ActiveProcesses
指定服務應用程式執行所在每部電腦上的轉換程式數目。 此值相當於同時轉換的數目。 預設值為 8。
類型必須是介於 1 到 1000 之間的有效整數。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-AddSupportedFormats
指定一組要啟用供服務應用程式使用的檔案格式。
此值必須是下列一或多個專案的逗號分隔清單:docx、doc、mht、rtf、xml。
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-ApplicationPool
指定執行這個 Word Automation Services 實例的現有 IIS 受控應用程式集區。
此類型必須是格式為 12345678-90ab-cdef-1234-567890bcdefgh 的有效 GUID;有效的應用程式集區名稱 (例如 AppPoolName1);或有效之 IISWebServiceApplicationPool 物件的執行個體。
Type: | SPIisWebServiceApplicationPoolPipeBind |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, 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 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-ClearSupportedFormats
指定應停用所有檔案格式,以供服務應用程式使用。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, 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 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-ConversionsPerInstance
指定傳送至每個轉換程式的專案數目, (在每次執行計時器工作時) 查看本表稍早的 ActiveProcesses 參數描述。 預設值為 12。
此類型必須是有效的整數。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-ConversionTimeout
指定時間,以分鐘為單位,在該時間之後,標示為 InProgress 的轉換會在每次計時器作業執行時確認仍在執行中,且必要時會重新開機轉換。 預設值為 5。
類型必須是介於 1 到 60 之間的有效整數。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-DatabaseCredential
指定用來連接到 Word Automation Services 應用程式之資料庫的認證。 只有在使用 SQL 驗證來存取服務應用程式資料庫時,才使用此參數。
指定 DatabaseCredential 參數時,需要 DatabaseName 和 DatabaseServer 參數。
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-DatabaseName
指定要用於這個 Word Automation Services 應用程式實例的資料庫名稱。
此類型必須是有效的 SQL 資料庫名稱;例如,MetadataDB1。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-DatabaseServer
指定 Word Automation Services 資料庫的主機伺服器名稱。
此類型必須是有效的 SQL 資料庫伺服器主機名稱;例如,SQLServerHost1。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-DisableBinaryFileScan
指定在處理 Word 檔時,是否要執行其他檢查。 只有在服務處理的所有檔都受到信任時,才關閉此設定。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-DisableEmbeddedFonts
指定輸入檔中是否要忽略內嵌字型。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-Identity
指定要更新的 Word Automation Services 應用程式。
此類型必須是格式為 12345678-90ab-cdef-1234-567890bcdefgh 的有效 GUID;有效的 Word Automation Services 應用程式 (例如 WordSvcApp1);或有效之 SPServiceApplication 物件的執行個體。
Type: | WordServiceApplicationPipeBind |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-KeepAliveTimeout
指定轉換在終止之前無法回應的時間長度,以秒為單位。 預設值為 30。
類型必須是介於 10 到 60 之間的有效整數。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MaximumConversionAttempts
在轉換標記為「失敗」狀態之前,轉換嘗試次數上限。 預設值為 2。
類型必須是介於 1 到 10 之間的有效整數。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MaximumConversionTime
指定轉換在終止之前可以執行的時間長度上限,以秒為單位。 預設值為 300。
此類型必須是介於 60 到 MaxInt 之間的有效整數。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MaximumGroupSize
{{填入 MaximumGroupSize 描述}}
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MaximumMemoryUsage
指定服務應用程式可以使用的系統記憶體百分比上限。 預設值為 100。
類型必須是介於 10 到 100 之間的有效整數。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MaximumSyncConversionRequests
{{Fill MaximumSyncConversionRequests Description}}
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-RecycleProcessThreshold
指定在回收轉換程式之前轉換的檔數目。 如需轉換程式的其他資訊,請參閱本表稍早的 ActiveProcess 參數描述。
類型必須是介於 1 到 1000 之間的有效整數。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-RemoveSupportedFormats
指定一組要停用以供服務應用程式使用的檔案格式。
值必須是下列一或多個專案的逗號分隔清單:docx、doc、mht、rtf、xml。
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-TimerJobFrequency
指定此服務應用程式的計時器作業執行頻率,以分鐘為單位。 預設值為 15。
類型必須是介於 1 到 59 之間的有效整數。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2010, 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 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |