Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Merging registry info to location that changes per computer...

Status
Not open for further replies.

dotobi

Technical User
Mar 9, 2004
229
0
0
HK
Hi

I'm trying to merge certain registry info to the registry during a logon script. THe trouble is that one of the entries slightly changes per PC.

I took 3 example PCs and the locations were:
1st PC
HKEY_USERS\S-1-5-21-2036979091-2930340268-25859868-1177

2nd PC
HKEY_USERS\S-1-5-21-2036979091-2930340268-25859868-1178

3rd PC
HKEY_USERS\S-1-5-21-2036979091-2930340268-25859868-1188

As you can see, the locations are almost identical except for the last 2 digits. So using regedit /s "name_of_file.reg", could the key inside be something like "HKEY_USERS\S-1-5-21-2036979091-2930340268-25859868-11*" (wildcard at the end) or similar?

We're using Windows XP Pro SP2 for all the cients PCs with a Small Business Server 2003 SP2 Server.

Thanks

Kev
 
Actually, this key seems to change per user.

On one PC..

The 1st user was:
HKEY_USERS\S-1-5-21-2036979091-2930340268-25859868-1188

The 2nd user was:
HKEY_USERS\S-1-5-21-2036979091-2930340268-25859868-1135

Thanks
 
Actually. Justr figured out that HKEY_CURRENT_USER is just a map to the surrent user's entry within HKEY_USERS so this is OK.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top