PDA

View Full Version : Searching Registry (W2K)



drharvey
05-19-2004, 01:32 PM
Can somebody help me with some VB script that would search the Registry for installed programs and license info? Im am trying to do software audits. I have been able to use the Regread method, but I can only use to look at specific registry entries. I need to search the registry for application names and Product ID's. Any help would be appreciated.

report_2
05-19-2004, 01:58 PM
<a target="_blank" href=http://www.pxserver.com/WinAudit.htm>WinAudit v1.2.3</a> is freeware, standalone, small and works on Win2K.

That is all that I know about this software.

<a target="_blank" href=http://www.belarc.com/free_download.html>Belarc Advisor</a> will also provide software and license information.

The following saved in Notepad as xxxx.js will return the Windows Product key on a Win98 machine:
var WSHShell = WScript.CreateObject("WScript.Shell");
var ProductKey =
WSHShell.RegRead("HKLM\\Software\\Microsoft\\Windows\\CurrentVersion \\Productkey");
WSHShell.Popup(ProductKey, 0, "Windows 98 Product CD Key", 64);

I note this because in order to get specific information then you need to target that specific registry key versus a "search" type function.

HTH