Migrating TS profiles from Server 2008 to Server 2008 R2 when i noticed the Robocopy output looping on the Application Data store. After some investigation, it seems as though this is by design (a very bad design). Here’s why;
A Junction is used to force Vista to be “compatible” with older applications which are dependent on C:\documents and settings\User\Local\ApplicationData; Vista uses C:\Users\User\Local\AppData. The junction is what mimics AppData as Application Data. As a result, RoboCopy runs around in an endless loop trying to catch it’s own tail.
The fix is to add the /XJ switch within robocopy; /XJ will exclude Junctions.