Forum Discussion

Santoszuo's avatar
Santoszuo
Copper Contributor
Jun 02, 2026

How do I completely disable OneDrive in Windows 11?

I can't do that currently. I'm trying to stop using OneDrive on my Windows 11 PC and would like to disable it completely. I don't use cloud storage and prefer to keep all my files stored locally on the computer.

Even after closing OneDrive, it seems to start again after a reboot, and I still see OneDrive folders in File Explorer. I'm also concerned that some of my Desktop, Documents, and Pictures folders may still be syncing automatically.

What is the best way to completely disable OneDrive in Windows 11? Is it enough to unlink the PC and disable startup, or should I uninstall it as well? Any advice would be appreciated.

10 Replies

  • MateoLiu's avatar
    MateoLiu
    Iron Contributor

    Uninstall OneDrive from Windows 11, that is all set, lol

  • Maconek's avatar
    Maconek
    Copper Contributor

    Ok. You can use the OneDriveSetup,exe /uninstall command inside a scheduled task. This method "OneDriveSetup.exe /uninstall" in the scheduled task is a clever and completely free solution that only utilizes the built-in tools of Windows.

    However, if you are still looking for a way on how to disable OneDrive on Windows 11, then you may not need a complex scheduled task. Running the uninstaller once from the administrator command prompt will take approximately 30 seconds to achieve the same effect.

    The practical value of the scheduled task method will become apparent when you encounter the following situations:

    • Creating an automated Windows installation image (for example, for deployment on multiple computers)
    • Striving to ensure that OneDrive can continue to function normally after a Windows version update
    • Managing multiple machines but being unable to manually run the uninstallation program on each machine

     

    How to disable OneDrive on Windows 11 is not difficult at all. For a single computer, a simpler approach is to: run the "OneDriveSetup. exe /uninstall" command once first, and then disable the remaining tasks in the task scheduler. This will make it easier for you to achieve your desired result.

  • Aylaanin's avatar
    Aylaanin
    Iron Contributor

    Hiding the OneDrive folder is exactly what it sounds like—you mark the folder as "hidden" so it no longer appears in File Explorer. Here's how you'd disable OneDrive on Windows 11:

    1. Open the File Explorer and locate the OneDrive folder.

    2. Right-click on it and select "Properties".

    3. On the "General" tab, check the checkbox labeled "Hide in properties".

    4. Click "Apply" and then "OK".

    That's it. The folder has disappeared from the view. But here's an important point you need to understand: Hiding this folder will not prevent OneDrive from running or synchronizing. The cloud icon will still appear in the system tray. The application will still run automatically when it starts. The files will still be synchronized in the background.

  • Sagere's avatar
    Sagere
    Brass Contributor

    If you are wondering how to disable onedrive on Windows 11. The Group Policy Editor is a built-in tool in the Windows system, allowing you to switch settings at the system level. For OneDrive, there is a specific policy called "Prohibit using OneDrive as a file storage device".

    Step-by-step guide: How to disable OneDrive in Windows 11

    1. Press the "Windows" key and the "R" key on the keyboard.

    2. Type "gpedit.msc" and press the Enter key.

    3. Navigate to this path in the left pane:

    text

    Computer Configuration > Administrative Templates > Windows Components > OneDrive

    4. In the right pane, double-click "Block Use of OneDrive for File Storage".

    5. In the pop-up window, select "Enable".

    6. Click "Apply", then click "OK".

    7. Please restart your computer for the changes to take effect.

  • Axelohu's avatar
    Axelohu
    Copper Contributor

    You can use the built-in "Disable OneDrive" script to disable OneDrive on Windows 11 system. In fact, Windows 11 comes with a feature similar to a "script", but Microsoft has not named it "script". It is called Group Policy Editor. If you are using the Windows 11 Professional edition, it already exists on your computer.

    The following are the specific steps to disable OneDrive on Windows 11 using the built-in method:

    1. Press the Windows + R keys, enter "gpedit.msc", and press Enter.

    2. Go to the following path: Computer Configuration → Management Templates → Windows Components → OneDrive

    3. Double-click "Disable Use of OneDrive for File Storage"

    4. Select "Enable", then click "Apply" and "OK"

    5. Restart your computer

    This built-in method is only applicable to the Professional, Enterprise, or Education editions of Windows 11. If you are using the Windows 11 Home edition, you cannot use the Group Policy Editor. Microsoft believes that home users do not need this level of control authority - I know this is quite frustrating.

  • EmmettBrooks's avatar
    EmmettBrooks
    Iron Contributor

    You can how to disable onedrive on windows 11 in three steps: unlink your account, prevent it from starting up, and uninstall the program. This is the official, native method for completely stopping OneDrive synchronization and automatic startup.

    How to Disable OneDrive on Windows 11

    1. Unlink OneDrive:

    • Right-click the OneDrive cloud icon in the lower-right corner of the taskbar, select Help & Settings > Settings, switch to the Accounts tab, click Unlink from this PC, and confirm to pause file synchronization.

    2. Disable Startup Items:

    • Press Ctrl + Shift + Esc to open Task Manager, go to the Startup tab, locate Microsoft OneDrive, right-click it, and select Disable to prevent it from starting automatically.

    3. Uninstall the Application:

    • Use the Win+I shortcut to open Windows Settings, go to Installed apps, search for Microsoft OneDrive, click the three-dot menu, and select Uninstall to completely remove the software.

    This will stop OneDrive from syncing to the cloud, prevent it from starting automatically, and completely uninstall it from your Windows 11 device.

  • Xollom's avatar
    Xollom
    Iron Contributor

    Windows includes a practical PowerShell script that you can use to how to disable onedrive on windows 11 via one-click batch execution, as well as complete related operations such as stopping background services and blocking automatic reinstallation of OneDrive.

    Instructions: Create a new text document, paste the full provided PowerShell code, save the file and rename it remove-onedrive.ps1, right-click Windows Terminal and select Run as Administrator, navigate to the script storage folder and execute the script file, wait for the green success prompt to finish full OneDrive removal and disable setup.

    # Stop and disable OneDrive
    taskkill /f /im OneDrive.exe
    Stop-Service -Name "OneDrive Updater Service" -Force
    Set-Service -Name "OneDrive Updater Service" -StartupType Disabled
    
    # Uninstall OneDrive
    $onedrive = Get-AppxPackage *Microsoft.OneDrive*
    Remove-AppxPackage -Package $onedrive
    
    # Registry key to prevent reinstall
    New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\OneDrive" -Force
    New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\OneDrive" -Name "DisableFileSyncNGSC" -Value 1 -PropertyType DWORD -Force
    
    Write-Host "OneDrive has been removed and disabled" -ForegroundColor Green

    Its advantages include fully automated batch processing without repeated manual registry modification, simultaneously terminating processes, disabling update service and locking system registry, and requiring no extra third-party cleanup software.

    Its drawbacks include mandatory administrator permission to run normally, possible execution failure due to Windows PowerShell execution policy restrictions, and occasional partial component recovery after large-scale official system updates.

    This allows you to quickly finish how to disable onedrive on windows 11 in one operation. It is suitable for bulk system maintenance and one-time thorough OneDrive removal on Windows 11 devices, as well as for unified configuration for multiple computers.

  • HoltSawye's avatar
    HoltSawye
    Iron Contributor

    Making registry adjustments is an efficient way to disable OneDrive on Windows 11 and remove the OneDrive sidebar icon that remains in File Explorer after uninstallation.

    By modifying system registry settings, this method hides the remaining OneDrive navigation entries. As a lightweight manual solution, it removes residual traces from the sidebar without requiring third-party cleanup tools.

    How to Disable OneDrive on Windows 11

    Step 1: Press the Win + R shortcut keys, type regedit, and press Enter to launch the Registry Editor.

    Step 2: Navigate to the following path:

    HKEY_CLASSES_ROOT\CLSID{018D5C66-4533-4307-9B53-224DE2ED1FE6}.

    Step 3: In the right pane, double-click the entry named System.IsPinnedToNameSpaceTree.

    Step 4: Change its Value data from 1 to 0, then click OK to save the configuration.

    Finally, restart the File Explorer process or reboot the entire computer for the changes to take effect.

    Once you've completed these steps, the OneDrive icon will permanently disappear from the left sidebar of File Explorer, thereby removing any remaining traces of OneDrive from your Windows 11 system.

    Cons

    • Navigating the registry incorrectly or modifying values improperly may cause File Explorer to display incorrectly.
    • System updates may reset this registry setting and cause the OneDrive sidebar to reappear.
  • DashielQuinn's avatar
    DashielQuinn
    Iron Contributor

    This is a great registry tweak to quickly disable onedrive on windows 11 without installing third-party blocking programs. It essentially lets you block automatic OneDrive reinstall via Windows Update in just a few simple registry edits, allowing you to permanently stop unwanted OneDrive restoration after uninstall.

    Usage Guide: Press Win + R, type regedit to launch the Registry Editor, and then navigate to:

     HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\OneDrive.

    If the OneDrive key is not found, right-click on Windows, select New > Key, and name it OneDrive.

    Right-click in the blank space in the right pane, select New > DWORD Value, rename it to DisableFileSyncNGSC, double-click the entry, set the Value data to 1, and then save the changes.

    This registry operation requires no additional software and can quickly help you completely disable onedrive on windows 11, effectively resolving the issue where Windows Updates automatically reinstall OneDrive.

    It is particularly useful for users who have manually uninstalled OneDrive and want to avoid unexpected automatic recovery during system update or patch installation.

  • Santoszuo's avatar
    Santoszuo
    Copper Contributor

    I'm trying to stop using OneDrive on my Windows 11 PC and would like to disable it completely. I don't use cloud storage and prefer to keep all my files stored locally on the computer.

    Even after closing OneDrive, it seems to start again after a reboot, and I still see OneDrive folders in File Explorer. I'm also concerned that some of my Desktop, Documents, and Pictures folders may still be syncing automatically.

    What is the best way to completely disable OneDrive in Windows 11? Is it enough to unlink the PC and disable startup, or should I uninstall it as well? Any advice would be appreciated.