MSFN Forum: Getting unique HKEY_USERS\S-1-xxx id - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Getting unique HKEY_USERS\S-1-xxx id Rate Topic: -----

#1 User is offline   tip 

  • Group: Members
  • Posts: 5
  • Joined: 09-July 08

Posted 26 September 2008 - 08:07 PM

Hi,

Is there a way to obtain that unique user id in registry HKEY_USERS\S-1-5-xxxxxxxxx after a fresh WinXP install??

That id changes every time with a fresh OS install and I need it for some explorer button settings etc.

Thanks in advance...


#2 User is offline   Shark007 

  • Repackaging Specialist
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,154
  • Joined: 07-January 04

Posted 27 September 2008 - 05:49 AM

View Posttip, on Sep 26 2008, 10:07 PM, said:

Hi,

Is there a way to obtain that unique user id in registry HKEY_USERS\S-1-5-xxxxxxxxx after a fresh WinXP install??

That id changes every time with a fresh OS install and I need it for some explorer button settings etc.

Thanks in advance...

As you have stated and obviously discovered from testing ...
the keys are unique and change with each new installation, you cannot copy them from one install to the next.

I remember a similar posting here @ msfn, about 1.5-2 yrs ago, ...
The unique key is stored in a common key [HKCU]? which can be queried for the result..

you may want to try thr search function to try and find this post i speak of... Yzowl may have been involved in the converstion
because his extensive knowledge of commandline usage seems to ring a bell for this topic too. (regsearch commands)


shark

#3 User is offline   tip 

  • Group: Members
  • Posts: 5
  • Joined: 09-July 08

Posted 27 September 2008 - 09:44 AM

Thank you for pointing I found that post and it solved the problem...

For everyone suffering the same problem or seeking the same post I thought it would be nice to post it here too...



I'm using this code to create a registry file with my windows explorer toolbar settings...

@echo off&setlocal enableextensions
for /f "tokens=*" %%a in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" /s^|findstr "S-1-5-"') do (
for /f "tokens=1,3 delims= " %%b in ('reg query "%%~a" /v "ProfileImagePath"') do (
if errorlevel 0 (
echo/%%~c|find "%userprofile%">nul
if errorlevel 0 set UserSID=%%a
)
)
)
if not defined UserSID echo/ SID not found&&endlocal&goto :eof
set UserKey=HKEY_USERS\%UserSID:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\=%


Echo Windows Registry Editor Version 5.00 >> ExplorerSetting.reg
Echo. >> ExplorerSetting.reg
Echo [%UserKey%\Software\Microsoft\Internet Explorer\Toolbar] >> ExplorerSetting.reg
Echo "LinksFolderName"="Links" >> ExplorerSetting.reg
Echo "Locked"=dword:00000001 >> ExplorerSetting.reg
Echo "{710EB7A1-45ED-11D0-924A-0020AFC7AC4D}"=hex:07,00,00,00,ee,03,00,00,7e,69,79,\ >> ExplorerSetting.reg
Echo 1e,c5,9c,d1,11,a8,3f,00,c0,4f,c9,9d,61,20,01,00,00,00,00,00,00,ef,03,00,00,\ >> ExplorerSetting.reg
Echo 7e,69,79,1e,c5,9c,d1,11,a8,3f,00,c0,4f,c9,9d,61,21,01,00,00,00,00,00,00,f0,\ >> ExplorerSetting.reg
Echo 03,00,00,7e,69,79,1e,c5,9c,d1,11,a8,3f,00,c0,4f,c9,9d,61,30,01,00,00,04,00,\ >> ExplorerSetting.reg
Echo 00,00,ff,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ >> ExplorerSetting.reg
Echo 00,00,00,00,00,f2,03,00,00,7e,69,79,1e,c5,9c,d1,11,a8,3f,00,c0,4f,c9,9d,61,\ >> ExplorerSetting.reg
Echo 33,01,00,00,04,00,00,00,31,70,00,00,a1,b7,0e,71,ed,45,d0,11,92,4a,00,20,af,\ >> ExplorerSetting.reg
Echo c7,ac,4d,31,70,00,00,04,00,00,00,f4,03,00,00,7e,69,79,1e,c5,9c,d1,11,a8,3f,\ >> ExplorerSetting.reg
Echo 00,c0,4f,c9,9d,61,25,01,00,00,04,00,00,00,ff,ff,ff,ff,00,00,00,00,00,00,00,\ >> ExplorerSetting.reg
Echo 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,fd,03,00,00,a1,b7,0e,71,\ >> ExplorerSetting.reg
Echo ed,45,d0,11,92,4a,00,20,af,c7,ac,4d,11,70,00,00,04,00,00,00,ff,ff,ff,ff,00,\ >> ExplorerSetting.reg
Echo 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,04,\ >> ExplorerSetting.reg
Echo 00,00,a1,b7,0e,71,ed,45,d0,11,92,4a,00,20,af,c7,ac,4d,18,70,00,00,04,00,00,\ >> ExplorerSetting.reg
Echo 00,01,04,00,00,a1,b7,0e,71,ed,45,d0,11,92,4a,00,20,af,c7,ac,4d,19,70,00,00,\ >> ExplorerSetting.reg
Echo 04,00,00,00,02,04,00,00,a1,b7,0e,71,ed,45,d0,11,92,4a,00,20,af,c7,ac,4d,1a,\ >> ExplorerSetting.reg
Echo 70,00,00,04,00,00,00 >> ExplorerSetting.reg

endlocal&goto :eof


Thanks again Shark, this forum is very lucky to have you...

P.S.: Credits to Yzöwl

#4 User is offline   Geej 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 572
  • Joined: 01-January 08
  • OS:XP Pro x86
  • Country: Country Flag

Posted 27 September 2008 - 10:10 AM

I don't know if I provide the correct information but if you wish to pre-set Windows Explorer button, there is a registry tweak which i use such as


 
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar]
"{710EB7A1-45ED-11D0-924A-0020AFC7AC4D}"=hex:07,00,00,00,ee,03,00,00,7e,69,79,\
  1e,c5,9c,d1,11,a8,3f,00,c0,4f,c9,9d,61,20,01,00,00,00,00,00,00,ef,03,00,00,\
  7e,69,79,1e,c5,9c,d1,11,a8,3f,00,c0,4f,c9,9d,61,21,01,00,00,00,00,00,00,f0,\
  03,00,00,7e,69,79,1e,c5,9c,d1,11,a8,3f,00,c0,4f,c9,9d,61,30,01,00,00,04,00,\
  00,00,ff,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,f1,03,00,00,7e,69,79,1e,c5,9c,d1,11,a8,3f,00,c0,4f,c9,9d,61,\
  23,01,00,00,04,00,00,00,f2,03,00,00,7e,69,79,1e,c5,9c,d1,11,a8,3f,00,c0,4f,\
  c9,9d,61,33,01,00,00,04,00,00,00,ff,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,31,70,00,00,a1,b7,0e,71,ed,45,d0,\
  11,92,4a,00,20,af,c7,ac,4d,31,70,00,00,04,00,00,00,f4,03,00,00,7e,69,79,1e,\
  c5,9c,d1,11,a8,3f,00,c0,4f,c9,9d,61,25,01,00,00,04,00,00,00,fd,03,00,00,a1,\
  b7,0e,71,ed,45,d0,11,92,4a,00,20,af,c7,ac,4d,11,70,00,00,04,00,00,00,ff,ff,\
  ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,ff,03,00,00,a1,b7,0e,71,ed,45,d0,11,92,4a,00,20,af,c7,ac,4d,13,70,00,00,\
  04,00,00,00,ff,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,04,00,00,a1,b7,0e,71,ed,45,d0,11,92,4a,00,20,af,c7,\
  ac,4d,18,70,00,00,04,00,00,00,01,04,00,00,a1,b7,0e,71,ed,45,d0,11,92,4a,00,\
  20,af,c7,ac,4d,19,70,00,00,04,00,00,00,02,04,00,00,a1,b7,0e,71,ed,45,d0,11,\
  92,4a,00,20,af,c7,ac,4d,1a,70,00,00,04,00,00,00 


Of course, the code here are my own pre-set. U can preset your own explorer button, then export the registry key

(I'm using XP Pro)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy