I want to copy C:\Program Files
to D:\Programs
and place a junction instead.
If I run robocopy "C:\Program Files" D:\Programs /e /copyall /sj /secfix
from WRE or any other external environment everything gets copied but Windows becomes corrupted (for instance I can't open any UWP apps).
I tried to robocopy to another folder on the same drive but the problem persists, so the issue lies in the copying procedure itself and not into the change of partition.
I fear there is a problem with permissions, since if I just rename the C:\Program Files
folder to something else and place a junction to it everything works fine.
How can I make an exact copy of everything inside C:\Program Files
?