How do I export a key in ANSI format from the registry?

A. To export a key from the registry in ANSI format, use the /a switch:

regedit /a <registry file> "<registry key>"

For example, the following command exports the HKEY_LOCAL_MACHINE\Software key in ANSI format from the hklm.reg file.

regedit /a c:\hklm.reg "HKEY_LOCAL_MACHINE\Software"

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish