Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Registry Keys

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,3533
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Registry Keys
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Registry Keys - 6/26/2005 11:52:02 PM   
  orangedude

 

Posts: 29
Score: 0
Joined: 6/23/2005
From:
Status: offline
Is there an effective way to search the registry of a computer using vb script and find a particular key and report out its value? I tried using win32_registryaction but it doesn't seem to find the keys that i am looking for.
 
 
Post #: 1
 
 Re: Registry Keys - 6/27/2005 12:39:04 AM   
  ehvbs

 

Posts: 2169
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
If simple code like this

      
won't work for you, you'll have to check security issues (is your code
allowed to create ActiveX objects like "Wcript.Shell" and to read from
(this branch) of the registry?) or take the trouble and study the WMI
documention/examples.

(in reply to orangedude)
 
 
Post #: 2
 
 Re: Registry Keys - 6/27/2005 1:03:49 AM   
  orangedude

 

Posts: 29
Score: 0
Joined: 6/23/2005
From:
Status: offline
How do I get this to work for a remote computer? I know either the IP address or the computer Name on the network. can i get this info from that computer?

(in reply to orangedude)
 
 
Post #: 3
 
 Re: Registry Keys - 6/27/2005 2:02:41 AM   
  ehvbs

 

Posts: 2169
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
I should have known that life isn't easy or simple! You may look at

  • http://www.microsoft.com/technet/scriptcenter/default.mspx

  • http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/wmi_start_page.asp


There is at least one simple (?) example in the "The Portable Script Center"
(http://www.microsoft.com/technet/scriptcenter) called "Read String and DWORD Registry Values". If this works for you (r local system), you'll have to tackle the problem
of accessing other computers. Maybe just putting appropriate names in

      
strComputer will solve this problem (but I don't really believe it).

(in reply to orangedude)
 
 
Post #: 4
 
 Re: Registry Keys - 6/27/2005 2:17:08 AM   
  orangedude

 

Posts: 29
Score: 0
Joined: 6/23/2005
From:
Status: offline
ok,
I am tring to play around with the StdRegProv methods. But I don't know what to do about the data types. I won't know what type of value the key holds. Therefore I don't know which method to use. How would I be able to tell what method to use? such as getDWORDValue or getStringValue.

(in reply to orangedude)
 
 
Post #: 5
 
 Re: Registry Keys - 6/27/2005 6:46:50 AM   
  orangedude

 

Posts: 29
Score: 0
Joined: 6/23/2005
From:
Status: offline
Another Question,

How do I echo out the binary values and the multi string values of some registry keys? I can out put DWORD, string, and Expanded Strings fine. I am using the get***Value methods of the StdRegProv.

(in reply to orangedude)
 
 
Post #: 6
 
 Re: Registry Keys - 6/28/2005 2:20:33 AM   
  orangedude

 

Posts: 29
Score: 0
Joined: 6/23/2005
From:
Status: offline
Can anyone help me on the output of the binary and multi string values?

(in reply to orangedude)
 
 
Post #: 7
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Registry Keys Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts