【SharePointOnline】ドキュメントライブラリ上のファイルをコピーする

Copy-PNPFileコマンドを使います
-Confilmオプションが機能しないようで、強制上書きなどは-forceオプションを指定すると確認メッセージが出力されずに実行できます
1 |
Copy-PnPFile -Confirm:$false -SourceUrl 'Shared Documents/Document/test/Book.xlsx' -TargetUrl 'Shared Documents/Document/test/' -OverwriteIfAlreadyExists -Force |