[转]使用REGINI修改注册表访问权限

KB1146: 使用REGINI修改注册表访问权限  http://www.it588.com/openlab/kb/kbs/1146.aspx

文章编号:1146

最后修改:2009年02月05日

修订:1.0

用regini  命令可以来实现对 注册表权限的修改,如下:
Regini 命令行下修改注册表以及注册表权限
Regini是一个设置注册表权限的安全工具,常用于命令行方式批量更改注册表权限来达到提高系统安全性,下面我们先看看regnin所对应的格式和权限数值:
在renini.ini的格式:
注册表键数值 [更改的权限]
例如:
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun [1 7 17]
上例中是分别设置 Administrators   everyone   System   三个用户对注册表
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun
拥有完全访问权限
下面我们看看对应的权限代码
1   – Administrators 完全访问
2   – Administrators 只读访问
3   – Administrators 读和写入访问
4   – Administrators 读、写入、删除访问
5   – Creator 完全访问
6   – Creator 读和写入访问
7   – everyone 完全访问
8   – everyone 只读访问
9   – everyone 读和写入访问
10 – everyone 读、写入、删除访问
11 – Power Users 完全访问
12 – Power Users 读和写入访问
13 – Power Users 读、写入、删除访问
14 – System Operators 完全访问
15 – System Operators 读和写入访问
16 – System Operators 读、写入、删除访问
17 – System 完全访问
18 – System 读和写入访问
19 – System 只读访问
20 – Administrators 读、写、执行访问
21 – Interactive User 完全访问
22 – Interactive User 读和写入访问
23 – Interactive User 读、写入、删除访问
就第一个例子,我们要设置常见的3个组的用户为只读权限.那么先新建一个文件名为regini.ini然后编辑regini.ini的内容如下:
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun [2 9 19]
然后保存regini.ini 在命令行下导入regini.ini的命令是:
regini regini.ini
Regini 命令行下修改注册表以及注册表权限
使用方法
C:>regini regset.ini
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun [17]
把run项设为只允许system控制 其他用户不可控制 [17] 为控制参数 其他参数看帮助
               1   – Administrators Full Access
               2   – Administrators Read Access
               3   – Administrators Read and Write Access
               4   – Administrators Read, Write and Delete Access
               5   – Creator Full Access
               6   – Creator Read and Write Access
               7   – World Full Access
               8   – World Read Access
               9   – World Read and Write Access
               10 – World Read, Write and Delete Access
               11 – Power Users Full Access
               12 – Power Users Read and Write Access
               13 – Power Users Read, Write and Delete Access
               14 – System Operators Full Access
               15 – System Operators Read and Write Access
               16 – System Operators Read, Write and Delete Access
               17 – System Full Access
               18 – System Read and Write Access
               19 – System Read Access
               20 – Administrators Read, Write and Execute Access
               21 – Interactive User Full Access
               22 – Interactive User Read and Write Access
               23 – Interactive User Read, Write and Delete Access
更改RUN为只读
HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRun [2 8 19]
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun [2 8 19]


Advertisements
  1. 留下评论

Log in or fill out contact info to leave a reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: