I ran into a problem when using your DSC resource.
The message was
VERBOSE: [2016-12-15T12:15:50] [ERROR] PowerShell DSC resource MSFT_xRobocopy
failed to execute Test-TargetResource functionality with error message:
robocopy returned with errors! Exit code: ! More info
here:https://support.microsoft.com/en-us/kb/954404
I believe there should $LASTEXITCODE variable used instead of $result (which was not initialized and is undefined at this point) when building error message on the line 200:
throw "robocopy returned with errors! Exit code: $result! More info here:https://support.microsoft.com/en-us/kb/954404"
Hi,
I ran into a problem when using your DSC resource.
The message was
I believe there should
$LASTEXITCODE
variable used instead of$result
(which was not initialized and is undefined at this point) when building error message on the line 200:Thanks, Karel