Found these while sorting my Harddrive:
GetAVInformation() - Gets the installed AVs name.
GetSoftware() - Gets all installed Programs.
GetAVInformation() - Gets the installed AVs name.
Code
Public Function GetAVInformation(ByVal strSystem As String) As String
Dim strComputer As String = String.Empty
Dim wmiNS As String = String.Empty
Dim wmiQuery As String = String.Empty
Dim objWMIService As Object
Dim ColItems As Object
Dim objItem As Object
Dim str58 As New System.Text.StringBuilder
Try
If strSystem = System.Environment.MachineName Then
strComputer = "."
Else
strComputer = strSystem
End If
wmiNS = "\root\SecurityCenter2" 'Windows XP SecurityCenter
wmiQuery = "Select * from AntiVirusProduct"
objWMIService = Microsoft.VisualBasic.GetObject("winmgmts:\\" & strComputer & wmiNS)
ColItems = objWMIService.ExecQuery(wmiQuery)
For Each objItem In ColItems
Try
str58.AppendLine(objItem.displayname.ToString)
Catch ex As System.Exception
str58.AppendLine("??" & Microsoft.VisualBasic.vbTab & Microsoft.VisualBasic.vbTab & Microsoft.VisualBasic.vbTab & "??")
End Try
Next
Catch ex As System.Exception
End Try
'Log("AV is " + str58.ToString)
Return str58.ToString
End FunctionGetSoftware() - Gets all installed Programs.
Code
Public Function GetSoftware() As String
Dim DestKey As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"
GetSoftware = ""
Dim value as String = ""
For Each App As String In Microsoft.Win32.Registry.LocalMachine.OpenSubKey(DestKey).GetSubKeyNames
value = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(DestKey & App & "\").GetValue("DisplayName")
if value <> "" then
GetSoftware += "NewBlock-.-.-.-" & value
end if
Next
Return GetSoftware
End Function

![[Image: uzpE9zW.jpg]](https://i.imgur.com/uzpE9zW.jpg)
