Skip to content

Instantly share code, notes, and snippets.

@twlee79
Last active April 3, 2020 12:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?

Useful commands in Windows

Run a batch file everytime a command prompt starts:

reg add "HKCU\Software\Microsoft\Command Processor" /v AutoRun /t REG_EXPAND_SZ /d x:\cmd_init.bat /f

To delete:

reg delete "HKCU\Software\Microsoft\Command Processor" /v AutoRun

Remove web searches in start menu:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search]
"BingSearchEnabled"=dword:00000000
"CortanaConsent"=dword:00000000

Set to 1 to reenable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment