Set specified space-separated flags, and unset unmentioned flags, for a specific key

reg flags

  • Display or set flags on registry keys.
    More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/reg-flags>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

reg flags {{key_name}} set {{flag_names}}

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