Page 1 of 1 1
Topic Options
#129318 - 2004-11-11 03:27 PM savekey
JimmyMahoni Offline
Fresh Scripter

Registered: 2004-10-07
Posts: 6
Loc: Austria,Vienna
hi

I have another question ! If I save a RegistryKey with the SaveKey command, it makes a file test.reg but when I open this file, there are many cryptic characters and it's not possible to restore these registry infos ! Is this normal or not ? Need help please ?!

Jimmy
_________________________
No way for a life after death Superbia Avaritia Invidia Ira Acedia Gula Luxuria

Top
#129319 - 2004-11-11 03:31 PM Re: savekey
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Thats because SaveKey doesn't really store it as a .REG file (that we all know and love). It stores it as a binary HIVE file (.pol files are hives too, so is ntuser.dat), and you need to restore it using the LoadKey function (and you need backup restore privs to do this as well).

-Shawn

Top
#129320 - 2004-11-11 03:38 PM Re: savekey
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Quote:

.REG file (that we all know and love).




Isn't that nice ... just recently I killed my box by accident in doubleclicking a .reg instead of right clicking it. It contained the entire registry of one of our Servers for comparison with another one

^~°
_________________________



Top
#129321 - 2004-11-11 03:40 PM Re: savekey
JimmyMahoni Offline
Fresh Scripter

Registered: 2004-10-07
Posts: 6
Loc: Austria,Vienna
thank you
_________________________
No way for a life after death Superbia Avaritia Invidia Ira Acedia Gula Luxuria

Top
#129322 - 2004-11-11 03:42 PM Re: savekey
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Thats funny - my reaction to what happened to you was like that universal reaction that males have when they get kicked in the *you know whats* ... know what I mean ... that univeral ewfff!!! sound ;0)
Top
#129323 - 2004-11-11 03:44 PM Re: savekey
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Ja, 'twas an 'ouchie' moment
_________________________



Top
#129324 - 2004-11-11 04:11 PM Re: savekey
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I gotta pimp my FAQ...

Topic: LOADKEY - Why doesn't it work?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#129325 - 2004-11-11 08:59 PM Re: savekey
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Then pimp the link too

ROFL... You know there not going to go searching for it.


LOADKEY - Why doesn't it work?

Top
#129326 - 2004-11-11 09:06 PM Re: savekey
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
TFB
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#129327 - 2004-11-12 01:45 AM Re: savekey
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Quote:

I killed my box by accident in doubleclicking a .reg



I have difficulty understanding how that could happen unless you're asleep at the wheel or it was a wintendo. If I doubleclick on a reg file, it prompts me.

Being a belt and suspenders guy, I usually tack a .txt on the end if it is something I don't intend to merge.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#129328 - 2004-11-12 03:13 AM Re: savekey
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
I can believe it. I have done the same exact thing

I believe NT4 server did not prompt, its perfectly happy screwing an entire machines registry with a simple mouse click. I think 2k was the first to prompt maybe?

Top
#129329 - 2004-11-12 09:31 AM Re: savekey
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
need to test.
anybody wishing to try it out?
I can write some reg-files for the volunteer to try out
_________________________
!

download KiXnet

Top
#129330 - 2004-11-12 09:41 AM Re: savekey
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
LOL...im sure you could. I only have xp to test on though, and i know that it prompts.
Top
#129331 - 2004-11-12 10:24 AM Re: savekey
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
k, wait a sec, I will try on one of our DC's...
_________________________
!

download KiXnet

Top
#129332 - 2004-11-12 10:39 AM Re: savekey
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
k, on NT4 SP6 Server it did not ask.
it prompted though that merge was succesfull
_________________________
!

download KiXnet

Top
#129333 - 2004-11-12 01:36 PM Re: savekey
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
ah well, if only there was a prompt.
It ran immediately against the wall, speak bsod
_________________________



Top
#129334 - 2004-11-12 03:33 PM Re: savekey
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
This thread is officially hijaaked by mods...

I hang my head in shame.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#129335 - 2004-11-12 04:07 PM Re: savekey
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany


this should teach our users not to activate email notification
_________________________



Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1046 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.07 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org