Replies: 1 comment
-
Found Answer == Add the -Force parameter |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to copy all documents in a SharePoint library to another library,
Each copy generates a confirmation dialogue box to which I must respond.
foreach($file in $files)
{
$fileUrl = $file.FieldValues["FileRef"]
#Copy-PnPFile -SourceUrl $fileUrl -TargetUrl "/teams/XXXXXXX/Test_BIC" -OverwriteIfAlreadyExists
}
Generates a dialogue box asking for a confirmation.
Copy file or Folder
Yes No Suspend
each time the loop iterates.
I have tried 3 different connect methods and change the execution policy.
I cannot stop the confirmation of each file copy. There are too many files to approve the copy one at a time!
Any ideas would be appreciated. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions