Activate or Deactivate a Form to or from a Site Collection

Scenario/Problem: You need to activate or deactivate a form to or from a site collection.

Solution: Use the Enable-SPInfoPathFormTemplate or Disable-SPInfoPathFormTemplate cmdlet.

When you upload a form, it generates and deploys a feature for your form to each site collection in your farm. Using the Enable-SPInfoPathFormTemplate cmdlet activates that feature on the site collection you choose. Conversely, using the Disable-SPInfoPathFormTemplate cmdlet deactivates the form feature of the selected site collection.

To activate a form to a site collection, use the following cmdlet:

Enable-SPInfoPathFormTemplate-Identity "<<name of form template>>"-Site "<<URL of Site Collection>>"

To deactivate ...

Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.