Skip to content

Cmdlet "Move-PnPFile -IgnoreVersionHistory" is not working as expected. #3102

@4iJacob

Description

@4iJacob

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions