Forum Discussion
Christian1620
Jan 13, 2023Copper Contributor
Use Document template in document library powershell
Hello,
i want to add a file with a document template in a document library through powershell.
Like this one but with powershell
I do not find a pnp module or other online.
Steps in result:
- Upload a csv
- create documents (word) files in a document library with the second content type "ptoXXX"
Can anyone help me pls?
1 Reply
Sort By
- You can create a custom contenttype and assign a document template to it used PnP provisioning.
here is a sample you can follow to se how to do it
https://github.com/pnp/PnP-Provisioning-Schema/blob/master/Samples/ProvisioningSchema-2022-09-FullSample-01.xml