Monday, 9 January 2012

Activate & Deactivate infopath form using PowerShell or CMD in SharePoint


our new blog site : http://blog.hintechnology.com
Activate and Deactivate Infopath Form using Powershell or CMD in SharePoint

1. Deactivate Infopath form, from the Site Collection.
    stsadm.exe -o deactivateFormTemplate -url "http://demosite" -filename               "D:\InfoPathForms\PublishFiles\DemoSample.xsn"

2. Activate Infopath form, from the Site Collection.

    stsadm.exe -o activateFormTemplate -url "http://demosite" -filename    "D:\InfoPathForms\PublishFiles\DemoSample.xsn" 

3. Verify Infopath form 

    stsadm.exe -o verifyformtemplate -filename  "D:\InfoPathForms\PublishFiles\DemoSample.xsn"  

4. Verify Infopath form  

    stsadm.exe -o UpgradeFormTemplate -filename  "D:\InfoPathForms\PublishFiles\DemoSample.xsn" 

Thank You For Reading this Blog

No comments:

Post a Comment