The current Sync.ps1 contains
which results in error message: Uid is missing in Sync result
Looking into the older script, the ObejctGUID is casted into string. Tried the conversion with the new script and it works.
Therefore I propose to change it in ADSync.ps1 on lines: 63,72,78 and in ADSearch.ps1 line 74.