1. Joined : Sep 2015
    Posts : 2
    windows 10
       03 Sep 2015 #1

    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 System SpecsSystem Spec

  2. Joined : Mar 2016
    Posts : 4
    Windows 10
       22 Mar 2016 #2

    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 System SpecsSystem Spec

  3. Joined : Mar 2016
    Posts : 4
    Windows 10
       24 Mar 2016 #3

    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 System SpecsSystem Spec

  4. Joined : Mar 2016
    Posts : 4
    Windows 10
       28 Mar 2016 #4

    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 System SpecsSystem Spec


Similar Threads
Thread Forum
OneDrive - Add or Remove from Navigation Pane in Windows 10
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...
Remove OneDrive Folders from Libraries?
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...
Solved Remove onedrive from explorer breadcrumbs
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. ...
General Support
OneDrive Fetch Files - Add or Remove Windows 10 PCs
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...
Solved Remove OneDrive from the Explorer Side Panel in Windows 10
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: ...
General Support
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 10:22.
Find Us
Twitter Facebook Google+

Windows 10 Forums