Skip to content

[BUG] Move-PnPFile -IgnoreVersionHistory #1376

@Bryand13

Description

@Bryand13

Hello all,

Reporting an Issue or Missing Feature

Please confirm what it is that your reporting

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.

*The actual behaviour was also confirmed by Microsoft Premier Support.

Steps to reproduce behavior

Move-PnPFile -SourceUrl "/teams/Site1/Move/1 - copia (4).txt" -TargetUrl "/teams/Site2/Moved/" -IgnoreVersionHistory

What is the version of the Cmdlet module you are running?

Using 1.8.46-nightly PnP.PowerShell but its not working since the 1.8.0 version.

Which operating system/environment are you running PnP PowerShell on?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreproducedIssue reproduced after testing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions