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 mit C#

Empfohlene Antworten

Veröffentlicht

Ich habe bereits mit Hilfe von WMI Hardwaredaten ausgelesen. Aber ich bräuchte noch die CPU Temperatur. Ich habe es so gemacht wie es bei MSDN steht aber es funktioniert nicht. Ich schreibe euch mal meinen Code damit ihr es euch besser vorstellen könnt.

.

.

.

ConnectionOptions oConn = new ConnectionOptions();

System.Management.ManagementScope oMs = new System.Management.Management("\\\\localhost", oConn);

oQuery = new System.Management.ObjectQuery("select * from Win32_TemperatureProbe");

oSearcher = new ManagementObjectSearcher(oMs, oQuery);

foreach (ManagementObject oReturn in oReturnCollection)

{

Console.Writeln(oReturn["CurrentReading"]);

}

Wenn Ihr wisst was der Fehler ist oder ihr eine andere Möglichkeit wisst wie ich die CPU Temperatur bekomme, dann sagt es mir.

danke

stefan

laut Q306852 steht da auch nix drin. möglicherweise musst du den temperatursensor mit einer anderen methode auslesen, eventuell etwas mehr hardwarenah.

Most of the information that the Win32_TemperatureProbe WMI class provides comes from SMBIOS. Real-time readings for the CurrentReading property cannot be extracted from SMBIOS tables. For this reason, current implementations of Windows Management Instrumentation (WMI) do not populate the CurrentReading property. The CurrentReading property's presence is reserved for possible future use.

s'Amstel

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.