This examples shows how to create new lists from custom list templates in SharePoint using PowerShell and CSOM. Custom list templates are STP-files uploaded to the List Template Gallery on the site. This should work both on-premises [2013/2016] and Online [Office 365].
Note: This example uses commandsfrom the Office Dev PnP PowerShelllibrary, ex. Connect-PnPContext.I recommend using this library for working this PowerShell and SharePoint [both Online and On-Premises].
Share this:
Related
- Enabling scheduling on Publishing Pages in SharePoint Online [Office 365] using CSOM and PowerShell
- October 28, 2015
- Create a Communication Site from code in SharePoint Online using PowerShell
- July 16, 2017
- Enable ratings in SharePoint with PowerShell and CSOM
- September 11, 2016