HI All,
Following this issue which should be fixed I must be doing something wrong: link
Cmdlet "Move-PnPFile -IgnoreVersionHistory" is not working as expected.
Expected behavior
When using "Move-PnPFile -IgnoreVersionHistory" i expect to see in the target site only the last version for the file moved.
Actual behavior
When using "Move-PnPFile -IgnoreVersionHistory" it moves all version history for one file.
Steps to reproduce behavior
$job = Move-PnPFile -SourceUrl $SourceFileURL -TargetUrl $TargetFileURL -IgnoreVersionHistory -AllowSchemaMismatch -NoWait
What is the version of the Cmdlet module you are running?
Using PnP.PowerShell 2.1.1 and PowerShell 7.3.4