windows-reg.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 16 Sep 2019 22:13:19 +0300
changeset 2376 20b65f046002
parent 2228 837f1337c59b
permissions -rwxr-xr-x
Revoke privileges and drop role.

.. -*- coding: utf-8; -*-

=================
 Registry files.
=================
.. contents::
   :local:

How to add, modify, or delete registry subkeys and values.
==========================================================
::

  cmd# regedit.exe /s path-to.reg

See:

http://support.microsoft.com/kb/310516
  How to add, modify, or delete registry subkeys and values by
  using a registration entries (.reg) file.

Syntax of .Reg Files.
=====================

A .reg file has the following syntax::

  RegistryEditorVersion
  Blank line
  [RegistryPath1]
  "DataItemName1"="DataType1:DataValue1"
  DataItemName2"="DataType2:DataValue2"
  Blank line
  [RegistryPath2]
  "DataItemName3"="DataType3:DataValue3"

Deleting Registry Keys and Values.
==================================
::

  [-HKEY_LOCAL_MACHINE\Software\Test]

  [HKEY_LOCAL_MACHINE\Software\Test]
  "TestValue"=-