Disable/Remove SkyDrive


  1. Posts : 194
    Windows 10
       #1

    Disable/Remove SkyDrive


    So I found this script:

    @echo off
    cls

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

    echo Closing OneDrive process.
    echo.
    taskkill /f /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" /Q /S > NUL 2>&1
    rd "C:\OneDriveTemp" /Q /S > NUL 2>&1
    rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S > NUL 2>&1
    rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S > NUL 2>&1

    echo Removeing OneDrive from the Explorer Side Panel.
    echo.
    REG DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1
    REG DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1

    pause
    But that does not remove it from the shell. How can I remove it completely?
      My Computer


  2. Posts : 21
    Windows 10 Pro (15063.138)
       #2

    Disabling it through gpedit.msc worked for me.

    Go to:

    Code:
    Local Computer Policy\Computer Configuration\Administrative Templates\Windows Components
    It should be there, set: "Prevent the usage of OneDrive for file storage" to Enable.

    Exit and run "gpupdate /force"
      My Computer


  3. Posts : 194
    Windows 10
    Thread Starter
       #3

    Does "gpupdate /force" even need to be ran? It vanished instantly.

    Also, do you have a .reg that can do that for me? :)
      My Computer


  4. Posts : 21
    Windows 10 Pro (15063.138)
       #4

    SightUp said:
    Does "gpupdate /force" even need to be ran? It vanished instantly.

    Also, do you have a .reg that can do that for me? :)
    Unfortunately no mate.

    I do most of my work through gpedit.msc, I rarely work with .regs or .bats anymore.
      My Computer


  5. Posts : 194
    Windows 10
    Thread Starter
       #5

    Does that remove it in addition to stopping the service/program from running too?
      My Computer


  6. Posts : 194
    Windows 10
    Thread Starter
       #6

    Bump!
      My Computer


  7. Posts : 21
    Windows 10 Pro (15063.138)
       #7

    SightUp said:
    Does that remove it in addition to stopping the service/program from running too?
    Yup!.

    At least on my end it does.
      My Computer


 

  Related Discussions
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 11:57.
Find Us




Windows 10 Forums