Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

WMI genutzer Ram und CPU Last anzeigen

Empfohlene Antworten

Hallo,

ich versuche gerade mit WMI den derzeit genutzten RAM und die aktuelle CPU Last in % anzeigen zu lassen.

Das mit dem Ram dachte ich, habe ich geschafft, aber leider gibt es dort ein Problem:

Ich ziehe dort aus der WMI-Klasse Win32_OperatingSystem den Wert FreePhysicalMemory und aus der WMI-Klasse Win32_LogicalMemoryConfiguration den Wert TotalPhysicalMemory.

Dann den TotalPhysicalMemory - FreePhysicalMemmory, dann habe ich den derzeit genutzen Memory. Aber in dem Wert FreePhysicalMemory steht ein falscher Wert drinne. Dort steht im Moment ein Wert von 865480 KB. Es sind aber devinitiv ca 4 GB frei. Wieso steht denn dort ein so kleiner Wert drinne???

Wie ich das mit der CPULast mache, habe ich noch keinen Plan. Aber diesen kann man doch bestimmt auch per WMI abfragen??

System:

Windows Server 2003 R2 + SP1

4 x CPU

6 GB Ram

MFG

Daniel.82

hi,

habe das problem gelöst.

habe es jetzt so gemacht:

 

strComputer = "." 

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\DEFAULT") 

Set colItems = objWMIService.ExecQuery( _

    "SELECT * FROM CPQ_Memory",,48) 

For Each objItem in colItems 

availableMemory = CDbl ( round (objItem.AvailableKBytes/1024) )

Next


Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") 

Set colItems = objWMIService.ExecQuery( _

    "SELECT * FROM Win32_LogicalMemoryConfiguration",,48) 

For Each objItem in colItems 

total_physical = CDbl ( round ( objItem.TotalPhysicalMemory /1024 ) )

Next


used_Memory = CDbl (total_physical - availableMemory)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.