Link to home
Start Free TrialLog in
Avatar of dpang
dpang

asked on

CreateKey error running REGINI under WinNT 4.0

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?
Avatar of md041797
md041797

You must start your key with either HKEY_LOCAL_MACHINE or HKEY_USERS. Try HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Envm\Root\LEGACY_TEST\0000


Avatar of dpang

ASKER

Answer incorrect.  Branch in registry protected and cannot be modified.
ASKER CERTIFIED SOLUTION
Avatar of NickRepin
NickRepin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of dpang

ASKER

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.