Forcefully overwrite the existing registry value without a prompt

reg add

  • Add new keys and their values to the registry.
    More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/reg-add>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

reg add {{key_name}} /f

click the source code to copy install reg add on any operating system with command-not-found.com