Set-SPFarmConfig
設定本機伺服器陣列的全域屬性或全域屬性集合。
Syntax
Set-SPFarmConfig
[-AssignmentCollection <SPAssignmentCollection>]
[-Confirm]
[-DataFormWebPartAutoRefreshEnabled <Boolean>]
[-Force]
[-InstalledProductsRefresh]
[-ServiceConnectionPointBindingInformation <String>]
[-ServiceConnectionPointDelete]
[-WhatIf]
[-WorkflowBatchSize <Int32>]
[-WorkflowEventDeliveryTimeout <Int32>]
[-WorkflowPostponeThreshold <Int32>]
[-ASPScriptOptimizationEnabled <Boolean>]
[-UserAccountDirectoryPathIsImmutable]
[-DefaultActivateOnSiteMasterValue <Boolean>]
[-MaxSiteSubscriptionSettingsValueLength <UInt32>]
[-MaxTenantStoreValueLength <UInt32>]
[-SiteMasterMode <SPSiteMasterMode>]
[-SiteMasterValidationIntervalInHours <UInt32>]
[<CommonParameters>]
Description
Cmdlet Set-SPFarmConfig
會更新非 SPFarm 物件成員之本機伺服器陣列的全域設定集合。
使用 Cmdlet Get-SPFarmConfig
讀取本機伺服器陣列的全域設定,並從從本機伺服器陣列傳回的屬性集合建立新的 PSCustomObject 物件,然後將此物件新增至管線。
修改 PSCustomObject 物件,並將其傳遞至 Set-SPFarmConfig
Cmdlet 以變更參數值。
在 PSCustomObject 物件中收集的屬性必須是全伺服器陣列的設定,而且必須只針對整個伺服器陣列設定一次。
新增至 PSCustomObject 物件的參數名稱必須完全符合 Cmdlet 的 Set-SPFarmConfig
輸入參數名稱。
如需適用於 SharePoint 產品的 Windows PowerShell 權限及最新資訊,請參閱線上文件 SharePoint Server Cmdlet。
範例
---------------------範例--------------------------
Set-SPFarmConfig -WorkflowBatchSize 50
本範例會將 WorkflowBatdhSize 設定為 50。
參數
-ASPScriptOptimizationEnabled
指定是否啟用 ASP 腳本優化。 預設值為 false (關閉) 。
Type: | Boolean |
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 |
-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 |
-DataFormWebPartAutoRefreshEnabled
指定是否允許此伺服器陣列中任何頁面上的 DataFormWebPart 都可定期非同步化重新整理其內容 (在此頁面完成轉譯後)。
當設定為 False 時,所有 DataFormWebParts 都會略過網頁組件屬性中所提供的自動重新整理間隔時間。
Type: | Boolean |
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 |
-DefaultActivateOnSiteMasterValue
指定是否要預設啟用網站主機。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2016, SharePoint Server 2019 |
-Force
強制刪除或更新服務連線點。
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 |
-InstalledProductsRefresh
以伺服器陣列中所安裝之產品的清單更新目前的機器授權狀態。
Type: | SwitchParameter |
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 |
-MaxSiteSubscriptionSettingsValueLength
設定 SiteSubscription 屬性值的大小上限。
Type: | UInt32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2016, SharePoint Server 2019 |
-MaxTenantStoreValueLength
設定租使用者存放區屬性值的大小上限。
Type: | UInt32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2016, SharePoint Server 2019 |
-ServiceConnectionPointBindingInformation
新增或更新 Active Directory 網域 Service (AD DS) 中目前伺服器陣列的服務連接點。
此類型必須是會新增至服務連線點之關鍵值組的字串陣列。
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 |
-ServiceConnectionPointDelete
刪除 AD DS 中目前伺服器陣列的服務連線點。
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 |
-SiteMasterMode
指定網站主要模式是開啟還是關閉。 預設值為 off。
Type: | SPSiteMasterMode |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2016, SharePoint Server 2019 |
-SiteMasterValidationIntervalInHours
決定驗證網站主機的時間長度,以小時為單位。
預設值為 24。
Type: | UInt32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2016, SharePoint Server 2019 |
-UserAccountDirectoryPathIsImmutable
指定物件上的 SPSite
屬性是否 UserAccountDirectoryPath
不可變。
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 |
-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 |
-WorkflowBatchSize
指定傳遞至單一工作流程執行個體的事件分頁大小。
每個要求一次會串流輸出 100 個事件。
批次大小是單一工作流程執行個體所處理的事件數目,同一時間可有許多事件排入佇列。 如果由於所有前端網頁伺服器有太多執行個體正在執行中,而無法啟動或重新啟動工作流程執行個體,則不論批次大小為何,都不會擷取事件;此時,流速控制將覆寫批次大小。
Type: | Int32 |
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 |
-WorkflowEventDeliveryTimeout
將時間指定為整數,其中工作流程作業必須在不逾時作業的情況下執行。
如果工作流程工作逾時,則會送回佇列,然後重新執行。
例如,如果值設為 5,則工作流程工作必須在 5 分鐘內執行,否則工作流程工作會逾時。所有逾時的工作流程工作都會放回佇列,然後重新執行。預設值為 5 。
Type: | Int32 |
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 |
-WorkflowPostponeThreshold
指定在新工作流程執行個體於佇列中延遲前的時間,可在內容資料庫上於 IIS 內執行的工作流程數。
Type: | Int32 |
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 |