The information in this article applies to:
SUMMARYThis article describes how to use the Regini.exe tool in the Microsoft Windows NT 4.0 Resource Kit to modify registry permissions from within a script. MORE INFORMATIONIt may be useful to use the Regini tool to modify registry permissions from within a script to automate the distribution of permissions or for other uses. For example, if an administrator wanted to allow Everyone to have full control to HKEY_LOCAL_MACHINE\Software\MyCompany\MyProgram, the following sample Regini script would assign this permission:
The numbers that appear after the MyProgram key correspond to group permissions, and are defined in the following list:
Based on the script, the permissions of the MyProgram key are now:Administrators: Full Control Creator/Owner: Full Control World (Everyone): Full Control System: Full Control NOTE: When you use Regini in this way, it actually replaces all permissions with those specified in the script, so to change "Everyone-Read" to "Everyone-Full Control," the new permission (number 7) must be applied, along with the other existing permissions. Note that if 7 is the only number specified in brackets in the script, then the permissions after running the script would only be "Everyone-Full Control." For more information about the Regini.exe tool, please refer the Regini.doc file included in the Windows NT 4.0 Resource Kit. Additional query words:
Keywords : kbenv kbtool |
Last Reviewed: January 25, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |