Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to remove the OneDrive icon from Windows Explorer permanently?

3 Weeks Ago   #1
ShiftF5

Windows 7 Professional 64-bit
 
 
How to remove the OneDrive icon from Windows Explorer permanently?

Hello,
I have Windows 7 Professional x64 SP1. The computer is using a mandatory profile for the user and most settings are controlled by Local GPO (there is no domain controller).

Long ago I uninstalled OneDrive from the computers, however on one computer the OneDrive icon has re-appeared in the Windows Explorer "Favorites" menu. (See attachment).

Everything on Google says to just uninstall it from the Control Panel in Windows 7, however it's not listed in the Control Panel. Apparently there should also be a Group Policy located in Local Computer Policy - Computer Configuration - Administrative Templates - Windows Components - OneDrive but the OneDrive option does not exist (The instructions may have been for Windows 8+).

Simply deleting the icon doesn't work because the computer has a mandatory profile. Logging out and back in restores it.

I'm hoping there's a way to permanently remove it that someone has discovered!

Thanks!




Attached Images
How to remove the OneDrive icon from Windows Explorer permanently?-onedrive.png 
My System SpecsSystem Spec
.
3 Weeks Ago   #2
johnhoh

Win7 pro x64
 
 

Have you tried this? Its for win10 but might work for win7 too.

How to remove OneDrive from File Explorer on Windows 10 | Windows Central

I would also try searching your registry for the term OneDrive and deleting those specific references.
My System SpecsSystem Spec
3 Weeks Ago   #3
ShiftF5

Windows 7 Professional 64-bit
 
 

@johnhoh Yes I have seen that, however that registry key does not exist on Windows 7 (at least, not on mine). In Windows 7, OneDrive is installed as an application/app, but in Windows 10 it's part of the OS - so that could explain the difference.
My System SpecsSystem Spec
.

3 Weeks Ago   #4
johnhoh

Win7 pro x64
 
 

per this link
User Folders - Restore Default Location

Brinks says you can RESTORE Onedrive in Win8 by executing this batch file

taskkill /f /im explorer.exe
timeout /t 2 /nobreak >nul
if not exist "%UserProfile%\OneDrive" mkdir "%UserProfile%\OneDrive"
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "{A52BBA46-E9E1-435F-B3D9-28DAA648C0F6}" /t REG_SZ /d "C:\Users\%USERNAME%\OneDrive" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "{A52BBA46-E9E1-435F-B3D9-28DAA648C0F6}" /t REG_EXPAND_SZ /d %%USERPROFILE%%"\OneDrive" /f
attrib +r -s -h "%USERPROFILE%\OneDrive" /S /D
timeout /t 1 /nobreak >nul
start explorer.exe

which suggests that you may be able to DELETE the regisry keys

HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\{A52BBA46-E9E1-435F-B3D9-28DAA648C0F6}
and
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\{A52BBA46-E9E1-435F-B3D9-28DAA648C0F6}

in order to get rid of onedrive.

Worth a try to see if the keys are there in win7. Definitely back up each key before deleting it (in regedit right click on key then do file > export, to create a file on your desktop that you can click on to restore the keys if needed)
My System SpecsSystem Spec
3 Weeks Ago   #5
Megahertz07

Windows 7 HP 64
 
 

What you see in the Favorites are links.
Click on Favorites (top) and on right side you will see the links. Just right click on OneDrive link and choose remove.
My System SpecsSystem Spec
3 Weeks Ago   #6
ShiftF5

Windows 7 Professional 64-bit
 
 

@johnhoh - Thank you, that's very clever. I normally only work that job weekends so I will try that as soon as I'm back in.

@Megahertz07 - thanks for the reply but as I stated in my initial post:
Quote:
Simply deleting the icon doesn't work because the computer has a mandatory profile. Logging out and back in restores it.
My System SpecsSystem Spec
2 Weeks Ago   #7
ShiftF5

Windows 7 Professional 64-bit
 
 

@johnhoh - Thanks for your help. Your suggestion didn't solve the problem per se, as those registry keys didn't exist in W7, *however* it gave me a good starting point to locate where the link was stored. The Shell Folders registry key had some promising-looking folders listed in it, which I navigated and from there was able to find the shortcut to OneDrive in the user's profile (in the "Links" folder). Logged in as an Administrator instead of the mandatory user, I was able to navigate to the shortcut and delete it. I deleted it from both the user profile and the mandatory profile for good measure (see attached screenshots). It worked! Thanks so much for your help.


Attached Thumbnails
How to remove the OneDrive icon from Windows Explorer permanently?-capture1.png  
Attached Images
How to remove the OneDrive icon from Windows Explorer permanently?-capture2.png How to remove the OneDrive icon from Windows Explorer permanently?-capture3.png 
My System SpecsSystem Spec
2 Weeks Ago   #8
johnhoh

Win7 pro x64
 
 

good work, thanks for telling us how you did it in case folks down the road want to know
My System SpecsSystem Spec
2 Weeks Ago   #9
ShiftF5

Windows 7 Professional 64-bit
 
 

NP. Nothing worse than finding a thread with your exact issue but no solution :) It also will help Future Me when the icon reappears 6 months from now and I forget where I found it...
My System SpecsSystem Spec
Reply

 How to remove the OneDrive icon from Windows Explorer permanently?




Thread Tools




Similar help and support threads
Thread Forum
OneDrive Explorer windows keep opening automatically - how to stop?
I have OneDrive installed on my computer. About once a day, one or more (sometimes up to a dozen) Windows Explorer windows open automatically all at the same time, all pointing to the root of my OneDrive folder. Is there any way to stop this without uninstalling OneDrive?
General Discussion
Photos become permanently corrupted when viewed in Windows Explorer
Hi there, Good day to you. I have joined forum because after several months, I came across a thread which seems closes to my inquiry. ( https://www.sevenforums.com/music-pictures-video/355140-photos-turn-all-black-windows-explorer-windows-photo-gallery.html I received a message that...
General Discussion
How to remove OneDrive in Windows 7
A few days ago I installed OneDrive, the free one, on my Win7 system but didn't find it to my liking and now want to get rid of it. How do I unsubscribe and remove all vestiges of it? I will really appreciate getting help on this. Thank you.
Software
OneDrive Icon
Hi Folks, Any idea why my OneDrive icons on my PC differ from the one one my Taskbar. ?
General Discussion
Remove Reload Icon Windows Explorer
I want to remove the Reload button on Windows Explorer as I am using the Soft 7 2.0, it just doesn't look nice right at the edge. Can anyone help? http://i42.tinypic.com/29bggmw.png
Customization


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 18:08.
Twitter Facebook