Recently I had a request from a customer to find which SharePoint 2010 / 2013 lists are using InfoPath forms for their data entry (also known as enterprise forms for a SharePoint list). In this post I will show you a PowerShell script to determine if a SharePoint list is using InfoPath forms.
As you may have heard, InfoPath as a product will not be receiving any future releases (see InfoPath roadmap update blog post). Being able to find SharePoint lists using InfoPath forms may be useful to you now.
Special thanks goes out to Joe Rodgers (fellow PFE at Microsoft) who helped me narrow down the specific properties to look at. The property that we want is not at the base of the SPList properties nor on the SPList.Forms properties like I had hoped. Instead you will need to dig a few levels down. I found the property at SPList.ContentTypes.ResourceFolder.Properties[“_ipfs_infopathenabled”]. If this setting is true then your list is using InfoPath forms for data entry. If it is false then it is using out of the box SharePoint forms.
Add-PSSnapin microsoft.sharepoint.powershell $webURL = <Your Site URL> $documentLibraryName = <name of document library> $web = Get-SPWeb $list = $web.Lists[“$documentLibraryName”] $isUsingInfoPath = $list.ContentTypes.ResourceFolder.Properties[“_ipfs_infopathenabled”] Write-Output $isUsingInfoPath
This script will determine if a single SharePoint list is using InfoPath forms or not. You could easily expand this to work with multiple lists or sites (similar to my PowerShell Script to Determine Number of Files in SharePoint 2010 or 2013 Document Libraries). Feel free to adapt the above snippet in this post to your needs but please attribute rights if you republish.