Solved

CreateKey error running REGINI under WinNT 4.0

Posted on 1997-06-24
5
238 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 300 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

688 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