Why my document and desktop are appearing in OneDrive

Anonymous
2025-02-25T07:51:52+00:00

When I download apps which default save location is c:\user\document,and it will be redirected to OneDrive\document,but those app can't run properly because they can't read this location, however because I can't open those apps, I can't change their default location.So I uninstalled OneDrive, but the c:\user\onedrive steal exists and the app still can't work

Windows for home | Windows 11 | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Ramesh Srinivasan 87,175 Reputation points Independent Advisor
2025-02-25T09:50:48+00:00

(Assuming you've created a System Restore Point already.)

Run "Regedit.exe" to start the Registry Editor.

Go to the following branch:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

From the File menu, click "Export" and save the branch to a REG file.

In the right pane, delete the following values:

{24D89E24-2F19-4534-9DDE-6A6671FBB8FE}

{339719B5-8C47-4894-94C2-D8F77ADD44A6}

{767E6811-49CB-4273-87C2-20F355E1085B}

{AB5FB87B-7CE2-4F83-915D-550846C9537B}

{F42EE2D3-909F-4907-8871-4C22FC0BF756} 

{0DDD015D-B06C-45D5-8C4C-F59713854639}

{B7BEDE81-DF94-4682-A7D8-57A52620B86F}

{3B193882-D3AD-4EAB-965A-69829D1FB59F}

{69D2CF90-FC33-4FB7-9A0C-EBB0F0FCB43C}

Double-click "Desktop" and set its data to:

%USERPROFILE%\Desktop

Double-click "My Pictures" and set its data to:

%USERPROFILE%\Pictures

Double-click "Personal" and set its data to:

%USERPROFILE%\Documents

Exit the Registry Editor.

Open a Command Prompt window and run these commands:

md "%USERPROFILE%\Desktop"

md "%USERPROFILE%\Documents"

md "%USERPROFILE%\Pictures"

Log off and log back into your account.

The above steps will restore the shell folders to their default location. But the files needs to be moved manually from the respective OneDrive folders to the default location.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2025-02-25T09:47:01+00:00

    It shows this error

    Was this answer helpful?

    0 comments No comments
  2. Ramesh Srinivasan 87,175 Reputation points Independent Advisor
    2025-02-25T09:30:04+00:00

    Please create a System Restore Point and do the following:

    Open the "OneDrive" folder. In the OneDrive folder, right-click "Desktop" and click Properties. Click the "Location" tab. Click "Restore default". Click Yes when asked to move the files to the default location.

    Similarly, move the "Documents" and the "Pictures" folder via the folder properties → Location tab.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2025-02-25T09:20:26+00:00

    Here is the result

    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

    AppData    REG\_EXPAND\_SZ    %USERPROFILE%\AppData\Roaming 
    
    Cache    REG\_EXPAND\_SZ    %USERPROFILE%\AppData\Local\Microsoft\Windows\INetCache 
    
    Cookies    REG\_EXPAND\_SZ    %USERPROFILE%\AppData\Local\Microsoft\Windows\INetCookies 
    
    Favorites    REG\_EXPAND\_SZ    %USERPROFILE%\Favorites 
    
    History    REG\_EXPAND\_SZ    %USERPROFILE%\AppData\Local\Microsoft\Windows\History 
    
    Local AppData    REG\_EXPAND\_SZ    %USERPROFILE%\AppData\Local 
    
    My Music    REG\_EXPAND\_SZ    %USERPROFILE%\Music 
    
    My Video    REG\_EXPAND\_SZ    %USERPROFILE%\Videos 
    
    NetHood    REG\_EXPAND\_SZ    %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Network Shortcuts 
    
    PrintHood    REG\_EXPAND\_SZ    %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Printer Shortcuts 
    
    Programs    REG\_EXPAND\_SZ    %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs 
    
    Recent    REG\_EXPAND\_SZ    %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Recent 
    
    SendTo    REG\_EXPAND\_SZ    %USERPROFILE%\AppData\Roaming\Microsoft\Windows\SendTo 
    
    Start Menu    REG\_EXPAND\_SZ    %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu 
    
    Startup    REG\_EXPAND\_SZ    %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup 
    
    Templates    REG\_EXPAND\_SZ    %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Templates 
    
    {374DE290-123F-4565-9164-39C4925E467B}    REG\_EXPAND\_SZ    %USERPROFILE%\Downloads 
    
    {24D89E24-2F19-4534-9DDE-6A6671FBB8FE}    REG\_EXPAND\_SZ    C:\Users\13662\OneDrive\Documents\文档 
    
    {339719B5-8C47-4894-94C2-D8F77ADD44A6}    REG\_EXPAND\_SZ    C:\Users\13662\OneDrive\图片 
    
    {767E6811-49CB-4273-87C2-20F355E1085B}    REG\_EXPAND\_SZ    C:\Users\13662\OneDrive\图片\本机照片 
    
    {AB5FB87B-7CE2-4F83-915D-550846C9537B}    REG\_EXPAND\_SZ    C:\Users\13662\OneDrive\图片\本机照片 
    
    Desktop    REG\_EXPAND\_SZ    %USERPROFILE%\OneDrive\Desktop 
    
    My Pictures    REG\_EXPAND\_SZ    C:\Users\13662\OneDrive\图片 
    
    Personal    REG\_EXPAND\_SZ    C:\Users\13662\OneDrive\Documents\文档 
    
    {F42EE2D3-909F-4907-8871-4C22FC0BF756}    REG\_EXPAND\_SZ    %USERPROFILE%\OneDrive\Documents\文档 
    
    {0DDD015D-B06C-45D5-8C4C-F59713854639}    REG\_EXPAND\_SZ    %USERPROFILE%\OneDrive\图片 
    
    {B7BEDE81-DF94-4682-A7D8-57A52620B86F}    REG\_EXPAND\_SZ    %USERPROFILE%\OneDrive\图片\Screenshots 
    
    {3B193882-D3AD-4EAB-965A-69829D1FB59F}    REG\_EXPAND\_SZ    %USERPROFILE%\OneDrive\图片\Saved Pictures 
    
    {69D2CF90-FC33-4FB7-9A0C-EBB0F0FCB43C}    REG\_EXPAND\_SZ    %USERPROFILE%\OneDrive\图片\Slide Shows
    

    and I don't know why there is chinese in the folder name, in my computer it is English

    Was this answer helpful?

    0 comments No comments
  4. Ramesh Srinivasan 87,175 Reputation points Independent Advisor
    2025-02-25T08:24:57+00:00

    Hi 梁子路朱, This is Ramesh.

    If you've already uninstalled OneDrive, you can fix the Documents and Desktop folder paths via the registry.

    First, let's check the existing settings in the registry.

    From a Command Prompt window, run:

    reg.exe query "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
    

    The above command queries the shell folder registry settings. Copy the output and paste it into your reply window.

    After seeing the settings, I will post the solution to fix the paths.

    Was this answer helpful?

    0 comments No comments