Skip to content

Instantly share code, notes, and snippets.

@twlee79
Last active April 3, 2020 12:10
Show Gist options
  • Save twlee79/57d5167519a4135d2c993570eee649be to your computer and use it in GitHub Desktop.
Save twlee79/57d5167519a4135d2c993570eee649be to your computer and use it in GitHub Desktop.

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