Về operating systems, Windows 10 là fairly in-yer-face one. Aggressive marketing approach làm nó visible và intrusive, và advanced users muốn quiet, peaceful desktop không bells and whistles và modern nonsense làm low-IQ crowds happy worldwide cần go through a bunch of hoops để get things in order. Một ví dụ là OneDrive icon trong Windows Explorer.
Giờ, all in all, không dùng OneDrive relatively easy. Bạn có thể ignore nó. Disable startup entry. Thậm chí remove nó. Tôi explained all these steps trong Windows 10 ultimate privacy guide của tôi. Nhưng one thing cần extra rigor là leftover OneDrive icon shall remain lingering inside Windows Explorer, whether you use service or not. To wit, chúng ta cần remove it và make peace với OCD demons của chúng ta. A variety of guides shows how to do this, but what if standard registry hacks don't work? Aha. Follow me.
Phương pháp expected
Bắt đầu với basic stuff. Đầu tiên, nếu bạn lucky, stuff tôi viết giờ sẽ work cho bạn, và bạn sẽ be a happy bunny, và no more tweaks needed. Anyway, Windows Explorer trong Windows 10 dùng several hard-coded hard-pinned shortcuts trong Explorer. Thay vì give you option remove these như a human being, bạn phải dig into registry và search hexadecimal ID cho these entries.
Cụ thể, cho OneDrive, bạn cần registry keys sau (32-bit và 64-bit):
HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}
Dưới mỗi cái, trong right pane, thay đổi value của System.IsPinnedToNameSpaceTree từ 1 thành 0.
Và đó nên là all. Worst case, bạn may need to log out, log back in, hoặc reboot, nhưng OneDrive shortcut ought to be gone. Tuy nhiên, tôi không có luck đó, và nó remained stubbornly pinned, no matter what. Vậy tôi tried something more stringent (narrate this Dr. Emil Schaffhausen từ Dirty Rotten Scoundrels).
Export, delete & merge registry key
Tôi quyết định thử slightly different approach. Đầu tiên, tôi exported these two keys (với value set to 0 như trên) via File > Export và saved somewhere, với tên như onedrive1.reg hoặc alike. Sau đó, tôi deleted them. Tuy nhiên, này vẫn không make any change. Nhưng rồi, tôi merged files back into registry. Simply double click on these files in Explorer. Và voila, moment they were merged, whatever was corrupt hoặc weird in registry got fixed, và OneDrive shortcuts disappeared. Vì vậy nếu không work cho bạn the nice way, nó should work the less nice way.
Kết luận
Đây bạn. Tôi find it incredibly sad that one must resort to these kind of tricks để customize file explorer in their operating system. All it takes is seven minutes of coding, which would introduce the dignified option of letting the user choose what shortcuts they want displayed. Và nếu that existed, tôi might even be inclined to let OneDrive be. But this only fuels my resistance.
Cũng có aesthetic element, whereby this particular shortcut không look that good trong overall scheme of things, nhưng that's a small issue. The big one is, users have almost no practical choice. After all, who's going to play with registry anyway? Just hardcore techies. Anyway, nếu bạn muốn make your Explorer look nicer, và bạn muốn get rid of OneDrive shortcut, this article should provide. Take care.
Cheers.