Add-PnPFile #2923
-
Are there parameters to force an overwrite of a file? I am running the following code... I am placing thousands of documents in a library, where sometimes the file already exists, and needs to be updated to a newer version of the file. The files are PDF's. I want to ensure that every time I Add-PnPfile, any existing file is overwritten. Can you help? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I belive this is default? I guess it would depend on the version settings and if you require check out/content approval (where you have settings on Add-PnPFile to handle these scenarios), but adding the same file should overwrite existing files just fine. |
Beta Was this translation helpful? Give feedback.
I belive this is default?
I guess it would depend on the version settings and if you require check out/content approval (where you have settings on Add-PnPFile to handle these scenarios), but adding the same file should overwrite existing files just fine.