How to Uninstall OneDrive completely in Windows 10 ? here are the instructions!

Discussion in 'Windows 10' started by MELERIX, Oct 29, 2016.

  1. MELERIX

    MELERIX MDL Addicted

    Nov 7, 2011
    511
    195
    30
    #1 MELERIX, Oct 29, 2016
    Last edited by a moderator: Apr 20, 2017
  2. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    12,385
    13,476
    340
    What is the issue you're hoping MSFT will fix?
     
  3. MELERIX

    MELERIX MDL Addicted

    Nov 7, 2011
    511
    195
    30
    the "uninstall" that was available in previous builds.
     
  4. GOD666

    GOD666 MDL Expert

    Aug 1, 2015
    1,743
    1,684
    60
    Sadly, that is not broken. You see Microsoft does not want you removing One Drive, so there is no longer an official uninstaller and there likely never will be.

    However, thanks for publishing this. I'm sure it will be helpful for others. :)
     
  5. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    12,385
    13,476
    340
    For MSFT that's not called an issue, it will be intentionally made so by their design :)

    You've posted this in the pre-release era of win 10, at build 9926, is it still actual?
     
  6. pisthai

    pisthai Imperfect Human

    Jul 29, 2009
    6,638
    1,921
    210
    YES, your tool/cmd file works fine in 14955! Just tested o a new installation on a Laptop.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Runs[with]Scissors

    Runs[with]Scissors MDL Novice

    Oct 29, 2016
    10
    2
    0
    I am not irritated by OneDrive's request to be setup - I just ignore it. Better luck next time, MS.
     
  8. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,595
    225
    60
    I just stop it from starting when Windows start then close it down. Never seen it since.
     
  9. dhjohns

    dhjohns MDL Guru

    Sep 5, 2013
    2,819
    1,334
    90
    That is exactly how I do it. I just use the OneDrive modern app. It works very well. :tasty:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. PhaseDoubt

    PhaseDoubt MDL Expert

    Dec 24, 2011
    1,448
    278
    60
    My solution precisely; just don't let it bother me. That "let sleeping dogs lay" sort of thing. And since I never logon with a Microsoft ID, I never think about until I read about it somewhere.

    Our primary computers are Macs and they have iCloud to contend with. Personally I find OneDrive less "intrusive" than iCloud. At least once OneDrive is silenced, it seems to stay that way. But, as is the usual case ... YMMV.
     
  11. PhaseDoubt

    PhaseDoubt MDL Expert

    Dec 24, 2011
    1,448
    278
    60

    I think this is what Microsoft calls a "feature". :)
     
  12. T-S

    T-S MDL Guru

    Dec 14, 2012
    3,988
    1,305
    120
    #15 T-S, Oct 29, 2016
    Last edited by a moderator: Apr 20, 2017
    Code:
    @echo off
    cd /d "%~dp0"
    echo Uninstalling Contact Support...
    CLS<br>
    install_wim_tweak.exe /o /l
    install_wim_tweak.exe /o /c Microsoft-Windows-OneDrive /r
    install_wim_tweak.exe /h /o /l
    echo OneDrive should be uninstalled. Please reboot Windows 10.
    pause
    
    This is a proper way to get rid of it.

    You may need to run the last two lines from the OP post code, to get rid of the shell item on old users.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. Tiger-1

    Tiger-1 MDL Guru

    Oct 18, 2014
    2,510
    2,553
    90
    well also is possible use dws lite in utility to remove this "feature";)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    12,385
    13,476
    340
    But first scan the dws_lite download, many are infected.
     
  15. GOD666

    GOD666 MDL Expert

    Aug 1, 2015
    1,743
    1,684
    60
    Another women's feature is another women's trash. lol :p
     
  16. GOD666

    GOD666 MDL Expert

    Aug 1, 2015
    1,743
    1,684
    60
    #19 GOD666, Nov 8, 2016
    Last edited: Jun 3, 2017
    One good helping hand deserves another. Hope this helps. :)

    PHP:
    :: Automatically check get admin rights
    :::::::::::::::::::::::::::::::::::::::::
    @echo 
    off
    CLS
    ECHO.
    ECHO =============================
    ECHO 
    Running Admin shell
    ECHO =============================

    :
    checkPrivileges
    NET FILE 1
    >NUL 2>NUL
    if '%errorlevel%' == '0' ( goto gotPrivileges ) else ( goto getPrivileges )

    :
    getPrivileges
    if '%1'=='ELEV' (shift & goto gotPrivileges)
    ECHO.
    ECHO **************************************
    ECHO 
    Invoking UAC for Privilege Escalation
    ECHO **************************************

    setlocal DisableDelayedExpansion
    set 
    "batchPath=%~0"
    setlocal EnableDelayedExpansion
    ECHO Set UAC CreateObject^("Shell.Application"^) > "%temp%\OEgetPrivileges.vbs"
    ECHO UAC.ShellExecute "!batchPath!""ELEV""""runas">> "%temp%\OEgetPrivileges.vbs"
    "%temp%\OEgetPrivileges.vbs"
    exit /B

    :gotPrivileges
    ::::::::::::::::::::::::::::
    ::
    START
    ::::::::::::::::::::::::::::
    setlocal pushd .

    cls

    set x86
    ="%SYSTEMROOT%\System32\OneDriveSetup.exe"
    set x64="%SYSTEMROOT%\SysWOW64\OneDriveSetup.exe"

    echo Closing OneDrive process.
    echo.
    taskkill //im OneDrive.exe NUL 2>&1
    ping 127.0.0.1 
    -n 5 NUL 2>&1

    echo Uninstalling OneDrive.
    echo.
    if 
    exist %x64% (
    %
    x64% /uninstall
    ) else (
    %
    x86% /uninstall
    )
    ping 127.0.0.1 -n 5 NUL 2>&1

    echo Removing OneDrive leftovers.
    echo.
    rd "%USERPROFILE%\OneDrive" //NUL 2>&1
    rd 
    "C:\OneDriveTemp" //NUL 2>&1
    rd 
    "%LOCALAPPDATA%\Microsoft\OneDrive" //NUL 2>&1
    rd 
    "%PROGRAMDATA%\Microsoft OneDrive" //NUL 2>&1

    echo Removing OneDrive Link from Navigation Pane in File Explorer...
    echo.

    IF 
    NOT EXIST %WINDIR%\SysWOW64\regedit.exe GOTO PLATX86


    :PLATX64

    %WINDIR%\Sysnative\Reg.exe DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /NUL 2>&1
    %WINDIR%\Sysnative\Reg.exe DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /NUL 2>&1
    %WINDIR%\Sysnative\Reg.exe DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}" /NUL 2>&1
    %WINDIR%\Sysnative\Reg.exe DELETE "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}" /NUL 2>&1
    %WINDIR%\Sysnative\Reg.exe DELETE "HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /NUL 2>&1
    %WINDIR%\Sysnative\Reg.exe DELETE "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /NUL 2>&1

    GOTO PLATDONE


    :PLATX86

    REG DELETE 
    "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /NUL 2>&1
    REG DELETE 
    "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /NUL 2>&1
    REG DELETE 
    "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}" /NUL 2>&1
    REG DELETE 
    "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}" /NUL 2>&1
    REG DELETE 
    "HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /NUL 2>&1
    REG DELETE 
    "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /NUL 2>&1

    GOTO PLATDONE


    :PLATDONE



    cls
    echo DoneOneDrive has been uninstalledPlease reboot Windows 10.
    pause 
    nul
     
  17. kiwig

    kiwig MDL Novice

    Apr 2, 2014
    39
    12
    0