Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vivekwebm2020/9c34f177a24d1294f5ddd4a9b96c4e3d to your computer and use it in GitHub Desktop.
Save vivekwebm2020/9c34f177a24d1294f5ddd4a9b96c4e3d to your computer and use it in GitHub Desktop.
A small collection of Registry hacks for Windows 10 installations

Note: for any folder not found, navigate as far as possible, then create as a new Key

Disable Downloads like Candy Crush, etc.

  • HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent
  • Dword DisableWindowsConsumerFeatures set to 1

Disable Lock screen, just show login form

  • HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization
  • Dword NoLockScreen set to 1

Note: Requires latest anniversary update (was removed in the first version)

Disable Aero shake

  • HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer
  • Dword NoWindowMinimizingShortcuts set to 1

And newer versions of windows 10:

  • Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
  • Dword DisallowShaking set to 1

Disable Cortana

  • HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search
  • Dword AllowCortana set to 0

Uninstall OneDrive

  • taskkill /f /im OneDrive.exe
  • %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall

Set default text editor for files without extensions

In administrator command line:

assoc .="No Extension"
ftype "No Extension"="C:\path\to\my editor.exe" "%1"

https://superuser.com/questions/13653/how-to-set-the-default-program-for-opening-files-without-an-extension-in-windows

Context Menus

Remove 'Pin To Quick access' from context menu

https://gist.github.com/JohannesMP/ce36bf7588fc9e479191e5b319fcd93b

Remove 'open with Paint 3D' from context menu

https://gist.github.com/JohannesMP/ded89d04d7edd3ca9828679fa0e2d236

Remove 'scan with windows defender' from context menu

  • Delete key HKEY_CLASSES_ROOT\CLSID\{09A47860-11B0-4DA5-AFA5-26D86198A780}

Remove 'Open in Visual Studio' from context menu

https://gist.github.com/JohannesMP/0a8a3daa3a48dcb8884d16d51a736129

Add 'Open command window here' back to shift+RMB in anniversary edition or later

  • When clicking on:
    • folder: HKEY_CLASSES_ROOT\Directory\shell\cmd
    • folder background: HKEY_CLASSES_ROOT\Directory\Background\shell\cmd
    • external drive: HKEY_CLASSES_ROOT\Drive\shell\cmd

On empty spaces within folders

  • Change permissions of Administrator group for the cmd folder to allow editing
    • Right click cmd -> "Permissions", then "Advanced"
    • On "Advanced Security Settings," click the "Change" link next to "Owner."
    • Type your account name in the provided field, click "Check Names", and click "OK".
    • Check the "Replace owner on subcontainers and objects" option, then click "Apply" and "OK".
    • On "Permissions," select the Administrators group.
    • Under "Permissions for Administrators," select "Allow" for the "Full Control" option, then click "Apply" and "OK"
  • In cmd, rename Dword HideBasedOnVelocityId to ShowBasedOnVelocityId

Remove 'Open powershell window here' from shift+RMB in anniversary edition

  • When clicking on:
    • folder: HKEY_CLASSES_ROOT\Directory\shell\PowerShell
    • folder background: HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShell
    • external drive: HKEY_CLASSES_ROOT\Drive\shell\PowerShell
  • Change permissions of Administrator group for the PowerShell folder to allow editing
    • See instructions for cmd folder above
  • In PowerShell, rename Dword HideBasedOnVelocityId to ShowBasedOnVelocityId

Remove Onedrive button from explorer

  • HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}
  • Dword System.IsPinnedToNameSpaceTree set to 0

Remove Workgroup button from explorer

  • HKEY_CLASSES_ROOT\CLSID\{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}\ShellFolder
  • Dword Attributes set to b094010c (default is b084010c)
    • May need to take ownership of ShellFolder key first.

Fix laptop left click not working when key held down

  • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\PrecisionTouchPad
  • Dword AAPThreshold set to 0

Show seconds on clock

  • HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced
  • Dword ShowSecondsInSystemClock set to 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment