Skip to content

Why does most errorcodes return $false? #29

@nicolas6969

Description

@nicolas6969

We are using the xRobocopy module to copy various files/folders from different sources to one same destination. As the destination is never in sync with the different sources, the returned errorcode is always 3 (when at least one file has been copied) or 2 (when no files have been copied), because there are always extra files detected).

We have tried using /XX, but it doesn't affect the returned errorcode. Unfortunately, the resource gives back $false, as soon as the returned errorcode is not 0. So as long as extra file/folders are detected in destination, Test-DscConfiguration returns the related resources as not in desired state.

From our perspective, the extra files/folders (errorcodes 2 and 3) should result in "in desired state", so the resource test should return $true. Is there a way to accomplish this?

Or is this maybe an issue related to robocopy.exe, as the flag /XX should return errorcode 0 although extra folders/files are detected?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThe issue is an enhancement request.help wantedThe issue is up for grabs for anyone in the community.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions