Welcome to WinForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

registry editing question

 
   Windows XP Arc1 (Home) -> Customize RSS
Next:  How can I test my XP firewall  
Author Message
Nate18

External


Since: Aug 19, 2004
Posts: 17



(Msg. 1) Posted: Wed Apr 13, 2005 12:57 am
Post subject: registry editing question
Archived from groups: microsoft>public>windowsxp>customize (more info?)

I am writing a script that changes specific registry values and have kind of
hit a wall with a certain value. The problem is the path to the value varies
from system to system. Does anybody know of a way around this? For example:

PC1: HKCU\Software\America Online\ffd0-aab5cfe-acbd\Value to Change

PC2: HKCU\Software\America Online\ffc9-af32acfe-acbd\Value to Change

If anybody knows how to script that or can point me in the general direction
to somebody who does, I'd really appreciate it!

Thanks,
-Nate

 >> Stay informed about: registry editing question 
Back to top
Login to vote
Keith Miller

External


Since: Mar 21, 2004
Posts: 133



(Msg. 2) Posted: Wed Apr 13, 2005 8:05 am
Post subject: Re: registry editing question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I don't have AOL so I don't know what their registry entries look like.

If the 'ffd0-aab5cfe-acbd' portion of the key exists elsewhere in the registry as a value under a known key, you can read that first, then use that value to build the path to the key in question.

Otherwise You'll probably have to enumerate the subkeys of:

'HKCU\Software\America Online'

After you have your subkeys, loop through them looking for the one in question. If you know it's the only subkey with a "-" in its name, something like:

For each subkey in subkeys
If InStr(subkey,"-") Then
myval = WshShell.RegRead("HKCU\Software\America Online\" & subkey & "\ValuetoChange")
....
Exit For
End If
Next

Good Luck,
Keith




"Nate" <Nate DeleteThis @discussions.microsoft.com> wrote in message news:4C36E23A-D4C2-42AF-8F84-5F6622636884@microsoft.com...
 > I am writing a script that changes specific registry values and have kind of
 > hit a wall with a certain value. The problem is the path to the value varies
 > from system to system. Does anybody know of a way around this? For example:
 >
 > PC1: HKCU\Software\America Online\ffd0-aab5cfe-acbd\Value to Change
 >
 > PC2: HKCU\Software\America Online\ffc9-af32acfe-acbd\Value to Change
 >
 > If anybody knows how to script that or can point me in the general direction
 > to somebody who does, I'd really appreciate it!
 >
 > Thanks,
 > -Nate<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: registry editing question 
Back to top
Login to vote
Nate18

External


Since: Aug 19, 2004
Posts: 17



(Msg. 3) Posted: Wed Apr 13, 2005 12:35 pm
Post subject: Re: registry editing question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks Keith, that's exactly what I needed to know.

Just so everybody knows I'm not a smack, I don't have AOL either but I'm in
the business of helping people who do. I'm writing a script that runs after
an AOL install to clean-up everything it puts in there other than the main
program. Besides this one registry entry, I got everything else. You
install AOL, the script runs, you reboot, and all you see is an AOL icon on
the desktop and in the start menu. No screensaver, no deskbar, no IE
toolbar, no reg runs, no garbage other than the main program itself. If
anybody else wants this script, let me know.

"Keith Miller" wrote:

 > I don't have AOL so I don't know what their registry entries look like.
 >
 > If the 'ffd0-aab5cfe-acbd' portion of the key exists elsewhere in the registry as a value under a known key, you can read that first, then use that value to build the path to the key in question.
 >
 > Otherwise You'll probably have to enumerate the subkeys of:
 >
 > 'HKCU\Software\America Online'
 >
 > After you have your subkeys, loop through them looking for the one in question. If you know it's the only subkey with a "-" in its name, something like:
 >
 > For each subkey in subkeys
 > If InStr(subkey,"-") Then
 > myval = WshShell.RegRead("HKCU\Software\America Online\" & subkey & "\ValuetoChange")
 > ....
 > Exit For
 > End If
 > Next
 >
 > Good Luck,
 > Keith
 >
 >
 >
 >
 > "Nate" <Nate.DeleteThis@discussions.microsoft.com> wrote in message news:4C36E23A-D4C2-42AF-8F84-5F6622636884@microsoft.com...
  > > I am writing a script that changes specific registry values and have kind of
  > > hit a wall with a certain value. The problem is the path to the value varies
  > > from system to system. Does anybody know of a way around this? For example:
  > >
  > > PC1: HKCU\Software\America Online\ffd0-aab5cfe-acbd\Value to Change
  > >
  > > PC2: HKCU\Software\America Online\ffc9-af32acfe-acbd\Value to Change
  > >
  > > If anybody knows how to script that or can point me in the general direction
  > > to somebody who does, I'd really appreciate it!
  > >
  > > Thanks,
  > > -Nate
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: registry editing question 
Back to top
Login to vote
Kevin

External


Since: Feb 03, 2005
Posts: 40



(Msg. 4) Posted: Fri Dec 02, 2005 7:21 am
Post subject: Re: registry editing question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I need to do something very similar.

I need to change a key under the following location:
[HKEY_CURRENT_USER\Identities\{8D422F6E-0A21-4305-9F84-8981452E614D}\Software\Microsoft\Outlook Express\5.0\Mail]

The GUID is messing me up too. Do you have the code you used so I can take
a look at how you went around enumerating the 2 keys?

Although the GUID is different the key I need to change which is "Delete
Wastebasket On Exit" is the only instance it is in the registry.

Thanks!



"Nate" wrote:

> Thanks Keith, that's exactly what I needed to know.
>
> Just so everybody knows I'm not a smack, I don't have AOL either but I'm in
> the business of helping people who do. I'm writing a script that runs after
> an AOL install to clean-up everything it puts in there other than the main
> program. Besides this one registry entry, I got everything else. You
> install AOL, the script runs, you reboot, and all you see is an AOL icon on
> the desktop and in the start menu. No screensaver, no deskbar, no IE
> toolbar, no reg runs, no garbage other than the main program itself. If
> anybody else wants this script, let me know.
>
> "Keith Miller" wrote:
>
> > I don't have AOL so I don't know what their registry entries look like.
> >
> > If the 'ffd0-aab5cfe-acbd' portion of the key exists elsewhere in the registry as a value under a known key, you can read that first, then use that value to build the path to the key in question.
> >
> > Otherwise You'll probably have to enumerate the subkeys of:
> >
> > 'HKCU\Software\America Online'
> >
> > After you have your subkeys, loop through them looking for the one in question. If you know it's the only subkey with a "-" in its name, something like:
> >
> > For each subkey in subkeys
> > If InStr(subkey,"-") Then
> > myval = WshShell.RegRead("HKCU\Software\America Online\" & subkey & "\ValuetoChange")
> > ....
> > Exit For
> > End If
> > Next
> >
> > Good Luck,
> > Keith
> >
> >
> >
> >
> > "Nate" <Nate DeleteThis @discussions.microsoft.com> wrote in message news:4C36E23A-D4C2-42AF-8F84-5F6622636884@microsoft.com...
> > > I am writing a script that changes specific registry values and have kind of
> > > hit a wall with a certain value. The problem is the path to the value varies
> > > from system to system. Does anybody know of a way around this? For example:
> > >
> > > PC1: HKCU\Software\America Online\ffd0-aab5cfe-acbd\Value to Change
> > >
> > > PC2: HKCU\Software\America Online\ffc9-af32acfe-acbd\Value to Change
> > >
> > > If anybody knows how to script that or can point me in the general direction
> > > to somebody who does, I'd really appreciate it!
> > >
> > > Thanks,
> > > -Nate
> >
 >> Stay informed about: registry editing question 
Back to top
Login to vote
Nate18

External


Since: Aug 19, 2004
Posts: 17



(Msg. 5) Posted: Fri Dec 02, 2005 5:35 pm
Post subject: Re: registry editing question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Here's the code I used for my registry change:

Dim WshShell, bKey
Set WshShell = WScript.CreateObject("WScript.Shell")
bKey = WshShell.RegRead("HKCU\Software\America Online\America
Online\LastUsedClient\GUID")
WshShell.RegWrite("HKCU\Software\America Online\America Online\" & bKey &
"\FastStart\20-255-1283"), 1 , "REG_DWORD"

If you just change the location of the GUID it's reading and change RegWrite
to RegDelete, it should for you.

-Nate



"Kevin" wrote:

> I need to do something very similar.
>
> I need to change a key under the following location:
> [HKEY_CURRENT_USER\Identities\{8D422F6E-0A21-4305-9F84-8981452E614D}\Software\Microsoft\Outlook Express\5.0\Mail]
>
> The GUID is messing me up too. Do you have the code you used so I can take
> a look at how you went around enumerating the 2 keys?
>
> Although the GUID is different the key I need to change which is "Delete
> Wastebasket On Exit" is the only instance it is in the registry.
>
> Thanks!
>
>
>
> "Nate" wrote:
>
> > Thanks Keith, that's exactly what I needed to know.
> >
> > Just so everybody knows I'm not a smack, I don't have AOL either but I'm in
> > the business of helping people who do. I'm writing a script that runs after
> > an AOL install to clean-up everything it puts in there other than the main
> > program. Besides this one registry entry, I got everything else. You
> > install AOL, the script runs, you reboot, and all you see is an AOL icon on
> > the desktop and in the start menu. No screensaver, no deskbar, no IE
> > toolbar, no reg runs, no garbage other than the main program itself. If
> > anybody else wants this script, let me know.
> >
> > "Keith Miller" wrote:
> >
> > > I don't have AOL so I don't know what their registry entries look like.
> > >
> > > If the 'ffd0-aab5cfe-acbd' portion of the key exists elsewhere in the registry as a value under a known key, you can read that first, then use that value to build the path to the key in question.
> > >
> > > Otherwise You'll probably have to enumerate the subkeys of:
> > >
> > > 'HKCU\Software\America Online'
> > >
> > > After you have your subkeys, loop through them looking for the one in question. If you know it's the only subkey with a "-" in its name, something like:
> > >
> > > For each subkey in subkeys
> > > If InStr(subkey,"-") Then
> > > myval = WshShell.RegRead("HKCU\Software\America Online\" & subkey & "\ValuetoChange")
> > > ....
> > > Exit For
> > > End If
> > > Next
> > >
> > > Good Luck,
> > > Keith
> > >
> > >
> > >
> > >
> > > "Nate" <Nate.TakeThisOut@discussions.microsoft.com> wrote in message news:4C36E23A-D4C2-42AF-8F84-5F6622636884@microsoft.com...
> > > > I am writing a script that changes specific registry values and have kind of
> > > > hit a wall with a certain value. The problem is the path to the value varies
> > > > from system to system. Does anybody know of a way around this? For example:
> > > >
> > > > PC1: HKCU\Software\America Online\ffd0-aab5cfe-acbd\Value to Change
> > > >
> > > > PC2: HKCU\Software\America Online\ffc9-af32acfe-acbd\Value to Change
> > > >
> > > > If anybody knows how to script that or can point me in the general direction
> > > > to somebody who does, I'd really appreciate it!
> > > >
> > > > Thanks,
> > > > -Nate
> > >
 >> Stay informed about: registry editing question 
Back to top
Login to vote
Kevin

External


Since: Feb 03, 2005
Posts: 40



(Msg. 6) Posted: Fri Dec 02, 2005 5:43 pm
Post subject: Re: registry editing question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks. I used:
Save this as Whatever.VBS

-------------------------------------------------------------------------------

' Creates the shell object
Dim WshShell, keyToUse

Set WshShell = CreateObject("WScript.Shell")


' Reads the value of Last User ID
keyToUse = WshShell.RegRead("HKCU\Identities\Last User ID")



' If you want to see what the Value of Last User ID is
'''''msgbox keyToUse
'''''OR msgbox WshShell.RegRead("HKCU\Identities\Last User ID")



' Sets the value of the Delete Wastebasket On Exit Key
WshShell.RegWrite "HKCU\Identities\" & keyToUse
&"\Software\Microsoft\Outlook Express\5.0\Mail\Delete Wastebasket On Exit",
"0", "REG_DWORD"



"Nate" wrote:

> Here's the code I used for my registry change:
>
> Dim WshShell, bKey
> Set WshShell = WScript.CreateObject("WScript.Shell")
> bKey = WshShell.RegRead("HKCU\Software\America Online\America
> Online\LastUsedClient\GUID")
> WshShell.RegWrite("HKCU\Software\America Online\America Online\" & bKey &
> "\FastStart\20-255-1283"), 1 , "REG_DWORD"
>
> If you just change the location of the GUID it's reading and change RegWrite
> to RegDelete, it should for you.
>
> -Nate
>
>
>
> "Kevin" wrote:
>
> > I need to do something very similar.
> >
> > I need to change a key under the following location:
> > [HKEY_CURRENT_USER\Identities\{8D422F6E-0A21-4305-9F84-8981452E614D}\Software\Microsoft\Outlook Express\5.0\Mail]
> >
> > The GUID is messing me up too. Do you have the code you used so I can take
> > a look at how you went around enumerating the 2 keys?
> >
> > Although the GUID is different the key I need to change which is "Delete
> > Wastebasket On Exit" is the only instance it is in the registry.
> >
> > Thanks!
> >
> >
> >
> > "Nate" wrote:
> >
> > > Thanks Keith, that's exactly what I needed to know.
> > >
> > > Just so everybody knows I'm not a smack, I don't have AOL either but I'm in
> > > the business of helping people who do. I'm writing a script that runs after
> > > an AOL install to clean-up everything it puts in there other than the main
> > > program. Besides this one registry entry, I got everything else. You
> > > install AOL, the script runs, you reboot, and all you see is an AOL icon on
> > > the desktop and in the start menu. No screensaver, no deskbar, no IE
> > > toolbar, no reg runs, no garbage other than the main program itself. If
> > > anybody else wants this script, let me know.
> > >
> > > "Keith Miller" wrote:
> > >
> > > > I don't have AOL so I don't know what their registry entries look like.
> > > >
> > > > If the 'ffd0-aab5cfe-acbd' portion of the key exists elsewhere in the registry as a value under a known key, you can read that first, then use that value to build the path to the key in question.
> > > >
> > > > Otherwise You'll probably have to enumerate the subkeys of:
> > > >
> > > > 'HKCU\Software\America Online'
> > > >
> > > > After you have your subkeys, loop through them looking for the one in question. If you know it's the only subkey with a "-" in its name, something like:
> > > >
> > > > For each subkey in subkeys
> > > > If InStr(subkey,"-") Then
> > > > myval = WshShell.RegRead("HKCU\Software\America Online\" & subkey & "\ValuetoChange")
> > > > ....
> > > > Exit For
> > > > End If
> > > > Next
> > > >
> > > > Good Luck,
> > > > Keith
> > > >
> > > >
> > > >
> > > >
> > > > "Nate" <Nate RemoveThis @discussions.microsoft.com> wrote in message news:4C36E23A-D4C2-42AF-8F84-5F6622636884@microsoft.com...
> > > > > I am writing a script that changes specific registry values and have kind of
> > > > > hit a wall with a certain value. The problem is the path to the value varies
> > > > > from system to system. Does anybody know of a way around this? For example:
> > > > >
> > > > > PC1: HKCU\Software\America Online\ffd0-aab5cfe-acbd\Value to Change
> > > > >
> > > > > PC2: HKCU\Software\America Online\ffc9-af32acfe-acbd\Value to Change
> > > > >
> > > > > If anybody knows how to script that or can point me in the general direction
> > > > > to somebody who does, I'd really appreciate it!
> > > > >
> > > > > Thanks,
> > > > > -Nate
> > > >
 >> Stay informed about: registry editing question 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Registry editing - Is there a way to get regedit to open with all the keys collapsed, I think that's the word. After using regedit the keys are always expanded as they were when I last used it which makes it tedious to get back to basics and find your way around. David

Editing the desktop.htt - Is there a way to manually change the desktop.htt to customize the windows desktop? When adding web elements through the display utility, the changes are seen in the file, but when attempting to change the file manually, the changes are just..

editing submenu (right click) - do to various programs added and deleted my menu open right clicking allows me to delete with wiping, send to (blank), move, rename, and delete several filzip options none of which i'll ever use. is there some way to edit this? rather i should ask is...

Editing favorite list should not be this difficult! - Every time i delete the "links" folder from my favorites list, it comes back automatically when i restart my browser. I really do not need that folder since i want to have may own list of folders. Any advise on how to get rid of that folder per...

EDiting file actions and cant reverse it - I accidentally edited my windows xp file folder actions. When ever i double click the file folder it opens up Search. How do i change it back??
   Windows XP Arc1 (Home) -> Customize All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
 Windows XP
 Windows Vista!
 Win 2000/NT/98/ME


[ Contact us | Terms of Service/Privacy Policy ]