Diffrent Localizations/MUI for Known Folders with existing folders in OneDrive
We are using different Localizations/MUI. Is there any way to determine or query if there are existing folders in the user's OneDrive that have the name Document, Pictures etc? This is because most users are using the OneDrive KFM and already have redirected folders. Based on what MUI the user is using they are created with either Document, Pictures [ENG] or Dokument, Bilder [SWE].
Proposed solution:
- Query the users OneDrive for folders in the root based on a defined Enum or Hashtable of:
@{ Document = ENG; Pictures = ENG; Dokument = SWE; Bilder = SWE; }
- Based on the result of the query update the $listOfFoldersToRedirect (desiredTargetPath) to the found folders or use ENG as baseline.
I hope you understand my question and proposed solution. I can help with the code but I don't know which function initiates the the actual OneDrive connection.