DOCUMENT:Q142265 08-AUG-2001 [winnt] TITLE :How to use Regini.exe to modify HKEY_CURRENT_USER PRODUCT :Microsoft Windows NT PROD/VER:3.50 3.51 OPER/SYS: KEYWORDS: ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Windows NT Workstation versions 3.5, 3.51 - Microsoft Windows NT Server versions 3.5, 3.51 ------------------------------------------------------------------------------- SUMMARY ======= Regini is a character-based batch file utility that you can use to add keys to the Windows NT Registry by specifying a registry script. This article explains how you can use REGINI.EXE to create a registry script to modify the HKEY_CURRENT_USER registry hive. MORE INFORMATION ================ To create a registry script, do the following: WARNING: Using Registry Editor incorrectly can cause serious, systemwide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk. 1. Run Registry Editor (REGEDT32.EXE). 2. From the HKEY_USERS subtree, go to the following key and note the : \HKEY_USERS\ NOTE: The following user node is used for this example: S-1-5-21-124525095-708259637-154311902-2419 3. From the HKEY_CURRENT_USER subtree, go to the following key: \Software 4. From the Edit menu, select Add Key. 5. Enter the Key name and click OK. For this example, use the key name: Test. 6. For this example, enter the following: Value Name: Engineer Data Type: REG_SZ String: JohnDoe 7. Create a registry script file called TEST.REG and enter the following: \registry\user\S-1-5-21-124525095-708259637-154311902-2419\software\test Engineer = REG_SZ WZoltan NOTE: Make sure there is a carriage return at the end of each line in the registry script file. For additional information, please see the following article(s) in the Microsoft Knowledge Base: ARTICLE-ID: Q139278 TITLE : Example in Windows NT Resource Kit For REGINI Does Not Work 8. From the command line, type the following: "Regini test.reg" (without the quotation marks) Additional query words: prodnt ====================================================================== Keywords : Technology : kbWinNTsearch kbWinNTWsearch kbWinNT351search kbWinNT350search kbWinNTW350 kbWinNTW350search kbWinNTW351search kbWinNTW351 kbWinNTSsearch kbWinNTS351 kbWinNTS350 kbWinNTS351search kbWinNTS350search Version : 3.50 3.51 ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2001.