Upload Multiple Form Templates at Once

Scenario/Problem: You have many form templates to upload to InfoPath Form Services but find it difficult performing the same process for each one individually.

Solution: Pipe the paths of all form templates you want to upload to the Install-SPInfoPathFormTemplate cmdlet.

You can upload multiple form templates by listing out each path, separated by a comma, and then using the pipe (|) to pass that list into the Install-SPInfoPathFormTemplate cmdlet, as shown in Listing 12.6.

Listing 12.6. Multiple Form Upload Cmdlet Line

"<<path of form 1>>" , "<<path of form 2>" , "<<path of form 3>>" |Install-SPInfoPathFormTemplate

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.