Adding Registry Settings

From WPKG | Open Source Software Deployment and Distribution
Revision as of 09:06, 30 September 2017 by 179.99.212.80 (Talk) (Utilities that can only edit entries)

Jump to: navigation, search

The Windows Registry is a hierarchical database that stores configuration settings and options on Microsoft Windows operating systems. It contains settings for low-level operating system components as well as the applications running on the platform: the kernel, device drivers, services, SAM, user interface and third party applications all make use of the Registry. The registry also provides a means to access counters for profiling system performance.

There are a number of utilities that allow you to modify the registry. Depending on your reqirements, may be more suitable for you needs. Some come with Windows natively, some can set security permissions as well as modifying entries. I like the helpful information you provide for your articles. Ill bookmark your blog and check again right here frequently. I am quite certain Ill be informed many new stuff proper right here! Best of luck for the next! cekgdcddadcdcbaa

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

SetACL is a free open source software 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

Adding entries to HKCU for all users

If WPKG is run at startup and you use REG or similar to add/edit/delete a registry key to HKEY_CURRENT_USER, it will only affect the WPKG's admin account's registry hive.

Active Setup

Active Setup is useful if you need to add an entry to HKCU for all users of a machine. It works by adding a key to HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\%package name% with a version number. When a user logs in Windows checks this location and compares it to HKCU\SOFTWARE\Microsoft\Active Setup\Installed Components\%package name%. If it is missing or a lower version then it runs whatever has been set in HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\%package name%\StubPath.

For example to enable Outlook RPC encryption:

<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\wpkgEnableOutlookEncryption" /v "Version" /d "1" /t REG_SZ /f' />
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\wpkgEnableOutlookEncryption" /v "StubPath" /d "reg add HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Outlook\RPC /v "EnableRPCEncryption" /d "1" /t REG_DWORD /f" /f' />  

Will run "reg add HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Outlook\RPC /v "EnableRPCEncryption" /d "1" /t REG_DWORD /f" once for each user as they login.