Set-SPContentDeploymentPath
設定內容部署路徑的屬性。
Syntax
Set-SPContentDeploymentPath
[-Identity] <SPContentDeploymentPathPipeBind>
[-AssignmentCollection <SPAssignmentCollection>]
[-Authentication <PathAuthenticationOption>]
[-CompressionEnabled]
[-DeploySecurityInformation <SPIncludeSecurity>]
[-DeployUserNamesEnabled]
[-Description <String>]
[-DestinationCentralAdministrationURL <Uri>]
[-EventReceiversEnabled]
[-KeepTemporaryFilesOptions <TemporaryFilesOption>]
[-Name <String>]
[-PathAccount <PSCredential>]
[-PathEnabled]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Cmdlet Set-SPContentDeploymentPath
會設定內容部署作業的內容部署路徑屬性。
如需適用於 SharePoint 產品的 Windows PowerShell 權限及最新資訊,請參閱線上文件 SharePoint Server Cmdlet。
範例
--------------------範例---------------------
Get-SPContentDeploymentPath "Path 1" | Set-SPContentDeploymentPath -PathEnabled:$false
本範例會設定要停用的部署路徑路徑 1。
參數
-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 |
-Authentication
這會設定 Windows 驗證類型,前端 Web 伺服器會用來與目的地 Web 應用程式通訊。
其類型必須為下列值之一:WindowsAuth 或 BasicAuth。
Type: | PathAuthenticationOption |
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 |
-CompressionEnabled
這會在匯出期間開啟壓縮。
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
執行 Cmdlet 之前提示您確認。
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 |
-DeploySecurityInformation
這會指定此內容部署路徑在匯出作業期間要包含的使用者和群組資訊。 SixMonths
此類型必須是下列其中一個值:None、All 或 WssOnly- 僅適用于 SharePoint Foundation 安全性設定。 包含使用者成員資格與像是預設角色的角色指派,例如 Web Designer 或任何從預設角色延伸出來的自訂角色。 每項物件的存取控制清單 (ACL) 都會移轉。 並不會包含 DAP 或 LDAP 伺服器中所定義的任何使用者資訊。
Type: | SPIncludeSecurity |
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 |
-DeployUserNamesEnabled
指定 以在匯入期間啟用事件接收器。
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 |
-Description
這會設定內容部署路徑的說明。 說明最多可包含 4096 個英數字元。
其類型必須為有效的字串。
Type: | String |
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 |
-DestinationCentralAdministrationURL
這會指定目的地伺服器陣列的 SharePoint 管理中心 URL。
類型必須是有效的 URL,格式為 http://server_name.
Type: | Uri |
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 |
-EventReceiversEnabled
這會在匯入期間開啟事件接收器。
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
指定要更新的內容部署路徑。
其類型必須為有效的 GUID,且格式為 12345678-90ab-cdef-1234-567890bcdefgh;內容部署工作的有效名稱 (例如,DeployPath1);或是有效之 SPContentDeploymentPath 物件的執行個體。
Type: | SPContentDeploymentPathPipeBind |
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 |
-KeepTemporaryFilesOptions
這會指定內容部署完成之後要保留暫存檔。
其類型必須為下列值之一:Never、Always 或 OnFailure。
Type: | TemporaryFilesOption |
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 |
-Name
指定內容部署路徑的名稱。
此類型必須是內容部署路徑的有效名稱;例如 DeploymentPath1。
Type: | String |
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 |
-PathAccount
這會指定使用者識別碼,且使用者是目的地伺服器陣列之管理中心頁面上的管理員。
其類型必須為有效的 SharePoint 使用者。
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 |
-PathEnabled
啟用內容部署路徑。
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 |
-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 |