Remove OneDrive from windows 10 image Solved

  1. Posts : 2
    windows 10

    Remove OneDrive from windows 10 image

    How to remove OneDrive completely from Windows 10 image.

    1 - Mount the image:
    Dism /Mount-wim /WimFile:<install.wim location> /index:1 /MountDir:<mountdir>

    2 - Erase OneDriveSetup.exe
    del <mountdir>\windows\system32\onedrivesetup.exe or del <mountdir>\windows\syswow64\onedrivesetup.exe

    3 - Delete the run key from the default user
    reg load HKLM\test <mountdir>\Users\default\ntuser.dat
    Then go to regedit and delete: HKLM\test\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\OneDriveSetup

    4 - Unload registry
    reg unload HKLM\test

    5 - Unmount the image
    dism /UnMount-wim /MountDir:<mountdir> /commit

      My ComputerSystem Spec

  2. Posts : 10
    Windows 10

    Doesn't work. My Install.wim has FW3.5 installed and most MS apps removed except Photo and Calc. Every time I attempt this OneDrive removal on the image (tried 3 times) I get the same exact result during installation.

    "Unable to install required files"

    According to the install log:

    Error applying F:\Windows\WinSxS\wow64_microsoft-windows-mapcontrol_31bf3856ad364e35_10.0.10240.16384_none_25aa37f6d9a10a6e\mos.dll. GLE [1392][gle=0x00000570]

    I started fresh with my existing image each time and each time this happened. Existing image installs fine.
      My ComputerSystem Spec

  3. Posts : 10
    Windows 10

    I took this a step further and grabbed the install.wim out of the MS ISO. Added FW3.5, removed apps and removed OneDrive. Same exact issue, same exact error. I didn't try it with just OneDrive removal because honestly, that's not an option for me.

    btw, Windows 10 ENT x64.

    Looks like it'll have to be the Group Policy no OneDrive option for me.
      My ComputerSystem Spec

  4. Posts : 10
    Windows 10

    Finally got to the bottom of this thanks to my brain not letting it go over the weekend. If you want to have a fresh install with no OneDrive then you can tackle it this way:

    You don't have to delete the EXE at all. Just edit the registry (via this tut) to not install it. Boom, done. No worry about missing file errors during install. Feel free to delete the setup up file if you want after install.
    Last edited by JEmlay; 31 Mar 2016 at 19:46.
      My ComputerSystem Spec

  5. Posts : 17
    Windows 7/8/10


    I've been using this reg fix with 1803 and it's always worked. However, the 1903 wim doesn't have the setup.exe key in the same place in the registry so it's being installed at first boot.

    Anyone figured it out for 1903?

      My ComputerSystem Spec

  6. pietcorus2's Avatar
    Posts : 903
    Windows 10 Pro x64

    " Anyone figured it out for 1903?

    Thanks ".............still no answer !..........why not !
      My ComputerSystem Spec


Related Threads
How to Add or Remove OneDrive in Navigation Pane of File Explorer in Windows 10 In Windows 10, you can easily save your files to OneDrive and get to them from any device, like your PC, tablet, or phone. OneDrive is free online storage at...
Alright guys, I actually do use OneDrive, and I am not trying to remove the app entirely. However, it seems like if I remove the OneDrive folder from my libraries (music, pictures, documents), next boot they show right back up. This is...
I've disabled onedrive through group policy (I don't want to uninstall it just in case), I've employed the registry tweak to remove it from explorer's navigation bar, now how do I do remove onedrive from explorer's breadcrumbs? Finicky, I know. ...
How to Add or Remove Windows 10 PCs from OneDrive Fetch Files OneDrive is a cloud-based storage service where you can view, browse, upload, and share the files you saved online to OneDrive. The OneDrive Fetch files feature allows you to...
I do not wish to have OneDrive appear in the File Explorer side panel. Is there an easy way to do this? There is a way to do this in Windows 8.1 but I don't think it works for Windows 10 because the registry key referenced in that method: ...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 02:21.
Find Us