How to Stop Windows 11 from Automatically Installing OneDrive

The Cloud Push

Microsoft aggressively integrates its cloud services into Windows 11. By default, even if you uninstall Microsoft OneDrive, major feature updates or cumulative patches can secretly trigger a silent re-installation. This means you might boot up your PC to find the OneDrive cloud icon unexpectedly sitting in your system tray, demanding you sign in and offering to back up your Documents and Pictures folders. For users who strictly use alternative cloud storage providers like Google Drive or Dropbox, or who simply demand total local control over their files, this persistent, automatic re-installation is highly intrusive.

Blocking the Installer

To permanently sever the connection and stop Windows 11 from automatically installing the OneDrive setup executable during system updates, you must deploy a specific registry block.

Warning: Modifying the Windows Registry carries risks. Proceed carefully. Press the Windows key, type regedit, and press Enter to launch the Registry Editor. You need to navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows. Right-click on the “Windows” folder, select New > Key, and name the new folder precisely OneDrive (if it doesn’t already exist). Click on your new OneDrive folder. In the empty right pane, right-click, select New > DWORD (32-bit) Value, and name it PreventNetworkTrafficPreUserSignIn. Double-click this new entry and change its “Value data” to 1. This specifically blocks the background installer from reaching out to Microsoft servers before you even log in, effectively preventing the automated OneDrive setup from running.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.