?
Solved

CreateKey error running REGINI under WinNT 4.0

Posted on 1997-06-24
5
Medium Priority
?
241 Views
Last Modified: 2013-12-03
I am logged onto NT Workstation 4.0 as Administrator, trying to use REGINI.  When I execute an .ini file which adds the key

\Registry\Machine\System\CurrentControlSet\Envm\Root\LEGACY_TEST\0000

I get a "CreateKey" error.  How do I resolve this?
0
Comment
Question by:dpang
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 4

Expert Comment

by:md041797
ID: 1399181
You must start your key with either HKEY_LOCAL_MACHINE or HKEY_USERS. Try HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Envm\Root\LEGACY_TEST\0000


0
 

Author Comment

by:dpang
ID: 1399182
Answer incorrect.  Branch in registry protected and cannot be modified.
0
 
LVL 15

Accepted Solution

by:
NickRepin earned 1200 total points
ID: 1399183
I've tried to run regini.exe on my Windows NT 4.0 Server:

   regini aaa.ini

There was a single line
   \Registry\Machine\System\CurrentControlSet\Envm\Root\LEGACY_TEST\0000

in the aaa.ini file.

All worked fine! The key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Envm\Root\LEGACY_TEST\0000 was created!

So it must work without any problem.

Are you sure the 'administrator' user is in 'administrators' group?
0
 
LVL 15

Expert Comment

by:NickRepin
ID: 1399184
You may fail to create a key if you don't have enough rights (regini reports error code -5).
Run regedit32, go to CurrentControlSet key, invoke menu Security->Permissions and make sure Administrators group has a full control rights.
0
 

Author Comment

by:dpang
ID: 1399185
Just noticed that there was a typo in my question!  "Envm" should be "Enum".  But anyway, your comment answered the question!

On the grading page there is an option to "Mark a comment as an answer...", but following this link gives the error "The requested URL /topics/bin/ChooseAnswer was not found on this server."

Thanks.
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question