Page 1 of 1 1
Topic Options
#212418 - 2017-04-11 12:56 PM Remote reg search for Add/Remove programs
Sweeny Offline
Fresh Scripter

Registered: 2016-03-18
Posts: 18
Loc: Hampshire
To the good and knowledgeable people of the Kix forum,
I need a bit of guidance with a new problem, I need to interrogate the registry of remote computers for what programs they have installed and export that data into a csv.
I have found the reg hives that contain this information but am having a hard time cycling through the keys and extracting their Display names of each installed application. Key's I've found are as follows:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
Any help or pointers would be greatly received
Many thanks,
Tom \:\)

Top
#212419 - 2017-04-11 01:58 PM Re: Remote reg search for Add/Remove programs [Re: Sweeny]
BradV Offline
Seasoned Scripter
****

Registered: 2006-08-16
Posts: 687
Loc: Maryland, USA
A slightly different approach. This will enumerate all of the software on a given server:

 Code:
Break on
Dim $SO
$SO = SetOption('Explicit',          'On')
$SO = SetOption('NoVarsInStrings',   'On')
$SO = SetOption('NoMacrosInStrings', 'On')
;
Dim $strComuter, $objWMIService, $colFeatures, $objFeature
;
$strComputer = "."
$objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" + $strComputer + "\root\cimv2")
$colFeatures = $objWMIService.ExecQuery("Select * from Win32_SoftwareFeature")
For Each $objFeature in $colFeatures
   ? + "Accesses:           " + $objFeature.Accesses
   ? + "Attributes:         " + $objFeature.Attributes
   ? + "Caption:            " + $objFeature.Caption
   ? + "Description:        " + $objFeature.Description
   ? + "Identifying Number: " + $objFeature.IdentifyingNumber
   ? + "Install Date:       " + $objFeature.InstallDate
   ? + "Install State:      " + $objFeature.InstallState
   ? + "Last Use:           " + $objFeature.LastUse
   ? + "Name:               " + $objFeature.Name
   ? + "Product Name:       " + $objFeature.ProductName
   ? + "Status:             " + $objFeature.Status
   ? + "Vendor:             " + $objFeature.Vendor
   ? + "Version:            " + $objFeature.Version
Next


Just change $strComputer to the remote workstation's name.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 687 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.057 seconds in which 0.031 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org