Disable Windows 10 upgrade nag

Windows 10 is great-ish. But sometimes you want to keep using the OS you’re on, be it Windows 7 (fine) or one of the Windows 8 variants (what’s wrong with you?!). To hide the tray icon that keeps wanting you to upgrade, run these two PowerShell commands (assuming you’ve never tweaked this setting before. Error messages are probably fine):

How to hide OneDrive from Windows 10 File Explorer

I finally found an easy and elegant solution to hiding that annoying OneDrive icon from the side bar of File Explorer in Windows 10:

regedit -> search for «IsPinnedToNameSpaceTree» (or browse to HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}, but searching is way faster), and set that to 0.

And since I love using PowerShell for stuff these days, here’s how you do it from the command line: