saittham
Goto Top

Windows x64 - Auslesen der laufenden Prozesse und installierter Software

Hallo Leute,

möchte auf einem W2k3 x64 Sp1 Server die Liste der installierten Programme sowie
die laufenden Prozesse ermitteln.

Habe das immer die Vbs von Microsoft auf 32-Bit Systemen benutzt auf x64 wird allerdings nicht alles angezeigt.

Liste der installierten Software ---------------------------------------
Const HKLM = &H80000002 'HKEY_LOCAL_MACHINE
strComputer = "."
strKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"
strEntry1a = "DisplayName"
strEntry1b = "QuietDisplayName"
strEntry2 = "InstallDate"
strEntry3 = "VersionMajor"
strEntry4 = "VersionMinor"
strEntry5 = "EstimatedSize"

Set objReg = GetObject("winmgmts://" & strComputer & _
"/root/default:StdRegProv")
objReg.EnumKey HKLM, strKey, arrSubkeys
WScript.Echo "Installed Applications" & VbCrLf
For Each strSubkey In arrSubkeys
intRet1 = objReg.GetStringValue(HKLM, strKey & strSubkey, _
strEntry1a, strValue1)
If intRet1 <> 0 Then
objReg.GetStringValue HKLM, strKey & strSubkey, _
strEntry1b, strValue1
End If
If strValue1 <> "" Then
WScript.Echo VbCrLf & "Display Name: " & strValue1
End If
objReg.GetStringValue HKLM, strKey & strSubkey, _
strEntry2, strValue2
If strValue2 <> "" Then
WScript.Echo "Install Date: " & strValue2
End If
objReg.GetDWORDValue HKLM, strKey & strSubkey, _
strEntry3, intValue3
objReg.GetDWORDValue HKLM, strKey & strSubkey, _
strEntry4, intValue4
If intValue3 <> "" Then
WScript.Echo "Version: " & intValue3 & "." & intValue4
End If
objReg.GetDWORDValue HKLM, strKey & strSubkey, _
strEntry5, intValue5
If intValue5 <> "" Then
WScript.Echo "Estimated Size: " & Round(intValue5/1024, 3) & " megabytes"
End If
Next

Prozesse pro User----------------------------------------------------------------------------

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colProcessList = objWMIService.ExecQuery("Select * from Win32_Process")

For Each objProcess in colProcessList
colProperties = objProcess.GetOwner(strNameOfUser,strUserDomain)
Wscript.Echo "Process " & objProcess.Name & " is owned by " _
& strUserDomain & "\" & strNameOfUser & "."
Next


Kann jemand einen Tipp geben, wie ich das für x64 realisieren kann.

Vielen Dank.

Gruß
Saihttam

Content-Key: 62004

Url: https://administrator.de/contentid/62004

Printed on: April 25, 2024 at 11:04 o'clock

Mitglied: 45666
45666 Jun 21, 2007 at 15:08:49 (UTC)
Goto Top
Hallo!


Versuch es mal mit der Freeware Systeminformation. Brauch keine Installation und liefert ausführliche Informationen!

http://www.wintotal.de/Software/index.php?id=2763
Member: saittham
saittham Jun 22, 2007 at 07:10:14 (UTC)
Goto Top
Hallo luscious,

das hilft mir erstmal weiter, danke

Gruß
Saihttam