Open a Command Prompt as administrator
mklink /j "%UserProfile%\OneDrive\AllProjects" "D:\MyFiles\AllProjects"