共用方式為


Import-SPInfoPathAdministrationFiles

 

適用版本: SharePoint Server 2010

上次修改主題的時間: 2015-03-09

匯入位於 SharePoint 管理中心網站的 Microsoft InfoPath 2010 表單範本與 .udcx 檔案。

Syntax

Import-SPInfoPathAdministrationFiles [-Path] <String> [-AssignmentCollection <SPAssignmentCollection>] [-Confirm [<SwitchParameter>]] [-Identity <SPFormsServicePipeBind>] [-WhatIf [<SwitchParameter>]]

詳細描述

Import-SPInfoPathAdministrationFiles cmdlet 可將位於 SharePoint 管理中心網站上的 InfoPath 2010 表單範本 (.xsn 檔案) 與通用資料連線 (.udcx 檔案) 匯入指定的 InfoPath Forms Services 服務。此 cmdlet 可以從包含 Microsoft InfoPath 之所有工作流程表單 (由管理員所部署,但不包含在 Microsoft SharePoint Foundation 2010 中) 的備份封裝,以及管理員所部署的瀏覽器表單匯入。

如需 Windows PowerShell for SharePoint Server 2010 的權限及最新資訊,請參閱 TechNet (https://go.microsoft.com/fwlink/?LinkId=163183)。

Parameters

參數 必要 輸入 描述

Path

必要

System.String

指定所要匯入之 .cab 檔案的位置。

此類型必須是格式為 \\ipadmin\folder\backups1\ipfsfiles.cab 的有效檔案路徑。

AssignmentCollection

選擇性

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

為能適當處置物件而管理物件。使用 SPWebSPSite 等物件可能會耗用大量的記憶體,因此在 Windows PowerShell 指令碼中使用這些物件時,必須適當地管理記憶體。您可以使用 SPAssignment 物件將物件指派給變數,並在不需要時處置這些物件,以釋放記憶體。使用 SPWebSPSiteSPSiteAdministration 物件時,若未使用指派集合或 Global 參數,將會自動處置這些物件。

注意

使用 Global 參數時,所有物件會包含在全域儲存區內。若未立即使用物件,或未使用 Stop-SPAssignment 命令處置物件,將會發生記憶體不足的狀況。

Confirm

選擇性

System.Management.Automation.SwitchParameter

執行命令之前,會先提示您進行確認。如需詳細資訊,請輸入下列命令:get-help about_commonparameters

Identity

選擇性

Microsoft.Office.InfoPath.Server.Cmdlet.SPFormsServicePipeBind

指定所要匯入的目的 InfoPath Forms Services 服務。

此類型必須是格式為 12345678-90ab-cdef-1234-567890bcdefgh 的有效 GUID;有效的表格服務名稱 (例如 FormsService1);或有效之 SPFormsService 物件的執行個體。

WhatIf

選擇性

System.Management.Automation.SwitchParameter

顯示訊息描述命令效果,而非描述命令執行的效果。如需詳細資訊,請輸入下列命令:get-help about_commonparameters

輸入類型

傳回類型

Example

--------------範例-----------------

Import-SPInfoPathAdministrationFiles -path "backupfiles.cab"

此範例會將位於 SharePoint 管理中心網站上的表單範本 (XSN 檔案) 與通用資料連線 (UDCX 檔案) 匯入指定的表單服務。

See Also

Reference

Export-SPInfoPathAdministrationFiles