English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am making a batch file to change my registry settings when I reinstall windows xp,all the other registry hives import perfectly,But HKEY_USERS starts with your "SID" which looks like this "S-1-5-21-1614895754-1207660529-1685469765" unfortunately this number is one of a kind,when I reinstall windows this number will CHANGE making my HKEY_USERS registry copy useless.And this is the very first key in the hive so every thing goes through it.Here is where I need to get to "HKEY_USERS\S-1-5-21-1614895754-1207660529-1685469765-1004\Software\ " Is there a wildcard perhaps to do this? I dont know .PLEASE HELP .THANKS IN ADVANCE

2006-11-18 02:57:25 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

sorry I didnt mention -I want this batch file to be reusable every time I install windows xp so I want to refrain from using regedit as much as possible.Thanks

2006-11-18 03:03:39 · update #1

This will not be a .reg file it will be a batch file using "reg add" as a command

2006-11-18 03:32:34 · update #2

3 answers

I assume you are creating a .reg file to merge. This can be opened in Notepad/Word as it is a text file. Simply do a replace all once you know the new SID

2006-11-18 03:07:09 · answer #1 · answered by orlandobillybob 6 · 0 0

You can't do that with a batch file but you can with a VB Script. You need to read the SID first and set it as a variable and then use that variable within the script to make your edit. That's not easily done with a batch file if it's even possible at all but it's pretty simple with scripts.

2006-11-18 03:10:32 · answer #2 · answered by Bostonian In MO 7 · 0 0

You could try regedit and copy it.

2006-11-18 03:00:53 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers