Use Document template in document library powershell

Copper Contributor

Hello,

 

i want to add a file with a document template in a document library through powershell. 

 

Like this one but with powershell

Christian1620_0-1673612216754.png

 

 

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
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-FullSa...