表单模版命令进行部署

下表提供了这些操作的说明:

 

Cmdlet说明

Get-SPInfoPathFormTemplate

返回 InfoPath 表单模板,或在未指定标识参数时返回表单模板列表。

Set-SPInfoPathFormTemplate

设置 InfoPath 表单模板的属性。可以使用此 cmdlet 更改表单模板的类别。

Install-SPInfoPathFormTemplate

在服务器场上安装 InfoPath 表单模板。安装包括表单模板的上载和升级。

Uninstall-SPInfoPathFormTemplate

从服务器场移除表单模板。

Enable-SPInfoPathFormTemplate

将表单模板激活到指定网站集。

Disable-SPInfoPathFormTemplate

从指定网站集停用表单模板。

Start-SPInfoPathFormTemplate

升级之后启动服务器场上的 InfoPath 表单模板。

Stop-SPInfoPathFormTemplate

升级之前禁用服务器场上的 InfoPath 表单模板。

Update-SPInfoPathFormTemplate

升级服务器场上的所有表单模板。

Test-SPInfoPathFormTemplate

验证表单模板是否可以启用浏览器功能。

Get-SPDataConnectionFileDependent

验证表单模板是否可以启用浏览器功能。

有关详细信息,请参阅 SharePoint Server 2010 的 Windows PowerShell

使用 Windows PowerShell 上载经管理员核准的表单模板

可以使用 Windows PowerShell,从命令行上载表单模板并执行许多其他 SharePoint Server 2010 中的 InfoPath Forms Services 管理任务。如果要编写脚本以自动执行重复性的管理任务,则此功能很有用。

Cc262921.note(zh-cn,office.14).gif注意:

表单模板验证是上载过程中的一个可选步骤,该步骤将检查是否可以将表单模板上载到服务器。管理员应在部署之前通过 Windows PowerShell 或管理中心网站执行这一步骤,以验证解决方案是否有效。如果您没有手动验证表单模板,则会在上载过程中自动验证它。手动验证将同时返回消息和错误,但自动验证只返回错误。

Cc262921.note(zh-cn,office.14).gif注意:

Windows PowerShell 验证必须在将要上载表单模板的服务器场中的服务器上执行。

使用 Windows PowerShell 上载表单模板

  1. 单击“开始”,指向“管理工具”,然后选择“Windows PowerShell 模块”。

    Cc262921.note(zh-cn,office.14).gif注意:

    必须先为 SharePoint Server 2010 加载 Windows PowerShell 模块,之后才能将 cmdlet 用于 Microsoft SharePoint Server 2010 中的 InfoPath Forms Services。

  2. 在 Windows PowerShell 中,键入 Install-SPInfoPathFormTemplate –Path <表单模板文件位置路径>,然后单击“确定”。

原文地址:https://www.cnblogs.com/914556495wxkj/p/3533390.html