For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > October 2004 > Registry Search Pattern & Replace String









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Registry Search Pattern & Replace String
Steve

2004-10-06, 8:55 pm

I am not sure what the best way to tackle this problem so here it goes...

I want to use the user's input to replace a string value in the registry.
The problem is locating the subkey. There is one location that I need to
change the string value:

\\HKLM\SOFTWARE\Funk Software, Inc.\odyssey\client\configuration
\userDefaults\profiles\profile#1A1A1AAAA
A11111AAAA1AA1A1A1A1A1A1AAA1111
\authentication

ttlsIdentity: UserName

Under the "profiles" key, there are two "profile#..." subkeys. There are
exactly 40 alphanumerics following the "#".

Under both "authentication" keys, they both contain the "ttlsIdentity"
string value. If I have to make both the same values, that's fine as long
as I change the second "ttlsIdentity" value to the username the user input
in the script.

What differetiates the two profile keys are that they contain different
string values for secondaryAuth in subkey "authentication."

HKLM
- SOFTWARE
- Funk Software, Inc.
- odyssey
- client
- configuration
- userDefaults
- profiles
- profile#8825B0B4471E4123B86A0D08C27FC0A6
414F7568
- authentication
*secondaryAuth (REG_SZ)= MS-CHAP-V2
*ttlsIdentity (REG_SZ)= username
- profile#93976CFE828C6DBFAD79EA46268C893B
413F6223
- authentication
*secondaryAuth (REG_SZ)= PAP-Token
*ttlsIdentity (REG_SZ)= username

Any help would be greatly appreciated!
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com