Skip to content

Instantly share code, notes, and snippets.

@afterparty7
afterparty7 / git context-menu - remove.reg
Created March 8, 2022 15:11
remove git gui and git shell context menu from a directory and desktop context-menu (right click menu), with UNDO in-case you want it back (change git path to point to your installation though!).
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\shell\git_gui]
[-HKEY_CLASSES_ROOT\Directory\shell\git_shell]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\git_gui]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\git_shell]
@afterparty7
afterparty7 / slmgr.bat
Created March 2, 2022 15:41 — forked from cchitsiang/slmgr.bat
Reset Windows Activation to pre-key state
Open a command prompt as an Administrator.
Enter slmgr /upk and wait for this to complete. This will uninstall the current product key from Windows and put it into an unlicensed state.
Enter slmgr /cpky and wait for this to complete. This will remove the product key from the registry if it's still there.
Enter slmgr /rearm and wait for this to complete. This is to reset the Windows activation timers so the new users will be prompted to activate Windows when they put in the key
slmgr /ipk 7BNJT-PXJR8-J9G6D-DHJVQ-DV3KQ
slmgr /ato