tip Posted September 27, 2008 Share Posted September 27, 2008 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... Link to comment Share on other sites More sharing options...
Shark007 Posted September 27, 2008 Share Posted September 27, 2008 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 converstionbecause his extensive knowledge of commandline usage seems to ring a bell for this topic too. (regsearch commands)shark Link to comment Share on other sites More sharing options...
tip Posted September 27, 2008 Author Share Posted September 27, 2008 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 enableextensionsfor /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 :eofset UserKey=HKEY_USERS\%UserSID:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\=%Echo Windows Registry Editor Version 5.00 >> ExplorerSetting.regEcho. >> ExplorerSetting.reg Echo [%UserKey%\Software\Microsoft\Internet Explorer\Toolbar] >> ExplorerSetting.regEcho "LinksFolderName"="Links" >> ExplorerSetting.regEcho "Locked"=dword:00000001 >> ExplorerSetting.regEcho "{710EB7A1-45ED-11D0-924A-0020AFC7AC4D}"=hex:07,00,00,00,ee,03,00,00,7e,69,79,\ >> ExplorerSetting.regEcho 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.regEcho 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.regEcho 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.regEcho 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.regEcho 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.regEcho 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.regEcho 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.regEcho 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.regEcho 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.regEcho 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.regEcho 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.regEcho 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.regEcho 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.regEcho 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.regEcho 70,00,00,04,00,00,00 >> ExplorerSetting.regendlocal&goto :eofThanks again Shark, this forum is very lucky to have you...P.S.: Credits to Yzöwl Link to comment Share on other sites More sharing options...
Geej Posted September 27, 2008 Share Posted September 27, 2008 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,00Of 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) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now