I haven’t tried this myself, but I would try this:
C:\Users\*\OneDrive;C:\Users\*\OneDrive*
The “*” is a wild card, so is “:” - see more details here. So below I am demonstrating with capital letters = USERNAME.
Your path will never find the OneDrive folder because it doesn’t exist at: C:\Users\OneDrive\*
The personal OneDrive location is = C:\Users\USERNAME\OneDrive
The business OneDrive location is = C:\Users\USERNAME\OneDrive - BUSINESS
FYI - I don’t have any C:\Temp location on my Windows 11 25H2 system. If you google some locations for Windows 11 temp folders you will find them here: