Page 1 of 1 1
Topic Options
#65541 - 2002-05-20 12:55 AM Adding keys to HKCU
Redback Offline
Getting the hang of it

Registered: 2002-03-20
Posts: 71
Loc: Albury Wodonga, Australia
Hi

I am trying to add a key to HKCU\software\policies\microsoft\internet explorer\ the problem is that the user doesent have rights to add the key there

Now, if i use su from the nt resource kit, the key gets added to the administrators HKCU (or whatever user you su to)

argh!

Top
#65542 - 2002-05-20 01:18 AM Re: Adding keys to HKCU
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
You will have to add the key to HKEY_USERS. You will have to lookup the the users SID and use that when adding the key.

See: GetSID()
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#65543 - 2002-05-20 01:26 AM Re: Adding keys to HKCU
Redback Offline
Getting the hang of it

Registered: 2002-03-20
Posts: 71
Loc: Albury Wodonga, Australia
Howard,

Will this work even if i cant see the users sid under HKU when logged in as admin?

Top
#65544 - 2002-05-20 02:08 AM Re: Adding keys to HKCU
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Please start regedt32 and examine HKEY_USERS not HKCU. Each user that has an active session is listed by SID.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#65545 - 2002-05-20 03:17 AM Re: Adding keys to HKCU
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
FYI

Windows 2000
Internet Explorer Group Policy Settings

Top
#65546 - 2002-05-20 05:23 AM Re: Adding keys to HKCU
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Redback,
Policies are best deployed through GPOs if AD or .POL files if not. IEAK is the best way to do IE deployment and corresponding policies.

That said, if you insist on using SU, when the user logs on, their user hive gets loaded. This, of course is governed by many things. See the FAQ
Sequence of events during logon
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#65547 - 2002-05-20 05:29 AM Re: Adding keys to HKCU
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
BTW, the thread that prompted me to write GetSID() is:

Hacking...er...Editing - HKEY_CURRENT_USER (remotely)...
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#65548 - 2002-05-20 07:02 AM Re: Adding keys to HKCU
Redback Offline
Getting the hang of it

Registered: 2002-03-20
Posts: 71
Loc: Albury Wodonga, Australia
The reason why I dident consider using group policy is because I have been asked to do this for one of our clients, he already uses group policy for many things and I assumed he would have tried that first.

Essentially I was asked to make a way to apply this reg key on login

I will look into using group policy to acheieve this, as its certanly a prefered solution

Thanks

Chris

Top
#65549 - 2002-05-20 06:39 PM Re: Adding keys to HKCU
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
You know what they say about assume... [Big Grin]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#65550 - 2002-05-21 01:10 AM Re: Adding keys to HKCU
Redback Offline
Getting the hang of it

Registered: 2002-03-20
Posts: 71
Loc: Albury Wodonga, Australia
Assumptions are the mother of all f**kups
Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, 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.08 seconds in which 0.045 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