Difference between revisions of "Adding Registry Settings"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m (RegEdit)
(organised the the utils into categories and added setacl to the list)
Line 1: Line 1:
=RegEdit=
+
=Utilities that can only edit entries=
 +
==RegEdit==
 +
 
 +
NB: When used via the command line Regedit cannot change registry access permissions. When used interactively a user can alter permissions.
  
 
Windows has a registry editing program called RegEdit which can be used interactively or it can be scripted. This can be useful to setup defaults for applications, or apply [http://www.winguides.com/registry/ registry tweaks for various Windows settings].
 
Windows has a registry editing program called RegEdit which can be used interactively or it can be scripted. This can be useful to setup defaults for applications, or apply [http://www.winguides.com/registry/ registry tweaks for various Windows settings].
  
NB: When used via the command line Regedit cannot change registry access permissions.
+
Regedit.exe comes with Windows (located at: %SystemRoot%\regedit.exe) so does not need to be installed on a PC by hand or stored in a shared folder.
  
 
To run RegEdit interactively, run the program <code>regedit.exe</code>.
 
To run RegEdit interactively, run the program <code>regedit.exe</code>.
Line 36: Line 39:
 
You can create ready-made .reg files by exporting registry keys from within RegEdit.
 
You can create ready-made .reg files by exporting registry keys from within RegEdit.
  
=Reg=
+
==Reg==
  
 
Alternatively, included with Windows 2000 Resource Kit, or with Windows XP itself, there is a command line registry editor, reg.exe, that can be used more directly from the command-line. For example:
 
Alternatively, included with Windows 2000 Resource Kit, or with Windows XP itself, there is a command line registry editor, reg.exe, that can be used more directly from the command-line. For example:
 
<code><pre>REG ADD HKLM\SOFTWARE\Test /v "Test Setting" /d "1" /t REG_DWORD</pre></code>
 
<code><pre>REG ADD HKLM\SOFTWARE\Test /v "Test Setting" /d "1" /t REG_DWORD</pre></code>
----
 
  
=Regini=
+
 
 +
=Utilities that can only edit permissions=
 +
 
 +
==SubInACL==
 +
SubInACL is a command-line tool that enables administrators to obtain security information about files, registry keys, and services, and transfer this information from user to user, from local or global group to group, and from domain to domain.
 +
 
 +
SubInACL can be downloaded from Microsoft's download site:[http://www.microsoft.com/downloads/en/details.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b Download SubInACL]
 +
 
 +
 
 +
==SetACL (open source)==
 +
SetACL is an Open Source utility that manages permissions, auditing and ownership information in files, folders and the regsitry.
 +
 
 +
More information can be found at the [http://helgeklein.com/ SetACL website].
 +
 
 +
=Utilities that can edit permissions and entries=
 +
==Regini==
 
You can modify registry entries and permissions with Regini.exe .
 
You can modify registry entries and permissions with Regini.exe .
  

Revision as of 12:39, 17 November 2010

Utilities that can only edit entries

RegEdit

NB: When used via the command line Regedit cannot change registry access permissions. When used interactively a user can alter permissions.

Windows has a registry editing program called RegEdit which can be used interactively or it can be scripted. This can be useful to setup defaults for applications, or apply registry tweaks for various Windows settings.

Regedit.exe comes with Windows (located at: %SystemRoot%\regedit.exe) so does not need to be installed on a PC by hand or stored in a shared folder.

To run RegEdit interactively, run the program regedit.exe.

To script the amendment of the registry using RegEdit, use it in the form regedit.exe /s <filename>.reg.

You can use RegEdit from WPKG to silently import registry settings, for example:

 <package
     id="sample_registry"
     name="Adds the contents of a .reg file to the registry"
     revision="1"
     priority="0"
     execute="once">
   <check type="registry" condition="equals" path="HKEY_LOCAL_MACHINE\SOFTWARE\Test" value="1" />
   <install cmd='regedit /s "%SOFTWARE%\test_registry.reg"' />
 </package>

And the sample file:

test_registry.reg:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Test]
"Test Setting"=dword:00000001
[-HKEY_LOCAL_MACHINE\SOFTWARE\TEST2]

(In Windows 2000/XP, adding "-" in front of a key name causes that key to be deleted from the registry.)

You can create ready-made .reg files by exporting registry keys from within RegEdit.

Reg

Alternatively, included with Windows 2000 Resource Kit, or with Windows XP itself, there is a command line registry editor, reg.exe, that can be used more directly from the command-line. For example:

REG ADD HKLM\SOFTWARE\Test /v "Test Setting" /d "1" /t REG_DWORD


Utilities that can only edit permissions

SubInACL

SubInACL is a command-line tool that enables administrators to obtain security information about files, registry keys, and services, and transfer this information from user to user, from local or global group to group, and from domain to domain.

SubInACL can be downloaded from Microsoft's download site:Download SubInACL


SetACL (open source)

SetACL is an Open Source utility that manages permissions, auditing and ownership information in files, folders and the regsitry.

More information can be found at the SetACL website.

Utilities that can edit permissions and entries

Regini

You can modify registry entries and permissions with Regini.exe .

The Regini.exe utility is included in the Windows NT Server 4.0 Resource Kit, in the Microsoft Windows 2000 Resource Kit, and in the Microsoft Windows Server 2003 Resource Kit.

Please see the MS KB article for details: Microsoft KB article 264584