Reply to Message

View discussion in a popup

Replying to:
mchadwick19
Hot Shot
Hot Shot

There are quite a few places that OneDrive has buried itself in in Win10. Perform the following steps from a command line on your master(assuming 64-bit OS):

taskkill /f /im OneDrive.exe

C:\Windows\System32\OneDriveSetup.exe /uninstall

Check under the following registry paths for OneDrive active setup keys. If there is one with ComponentID referencing OneDrive with a "StubPath" key - delete the stubpath key.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Active Setup\Installed Components

Load the default NTUSER.dat file and delete OneDrive activesetup stubpath keys in there as well:

HKU\<DEFAULT.dat>\SOFTWARE\Microsoft\Active Setup\Installed Components

HKU\<DEFAULT.dat>\SOFTWARE\WOW6432Node\Microsoft\Active Setup\Installed Components

Delete the directories for OneDrive under all user profiles (especially your Default user profile) and %ProgramData%. Also delete C:\OneDriveTemp.

If you want to remove the OneDrive links from File Explorer delete the two following registry keys if they exist:

HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}

HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}

I script this all in one .bat file that I run during my image setup. Feel free to do the same.

VDI Engineer VCP-DCV, VCP7-DTM, VCAP7-DTM Design
Reply
0 Kudos