Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save justaguywhocodes/bc57be175667f0df8ab47d9862805887 to your computer and use it in GitHub Desktop.

Select an option

Save justaguywhocodes/bc57be175667f0df8ab47d9862805887 to your computer and use it in GitHub Desktop.
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "MS SQL Writer" /t REG_SZ /d "C:\Windows\System32\notepad.exe" /f
reg query "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "MS SQL Writer"
reg delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "MS SQL Writer" /f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment