Windows Vista/Server2008でレジストリのパーミッションを変更する。

Regini.exeで変更できる。設定で使う数値は以下のとおり



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

set reg_file=REG.txt
echo HKEY_LOCAL_MACHINE\SOFTWARE\TEST1 [1 7 17] >> %reg_file%
echo HKEY_LOCAL_MACHINE\SOFTWARE\TEST2 [1 7 17] >> %reg_file%
regini %reg_file%
del %reg_file%