473,405 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

wmi win32_fan

Could you help me please?, this code dont' work, I' dont' see output
from the console.
thanks

ManagementScope serverremoto = new
ManagementScope(@"\\pctest\root\cimv2");
ObjectQuery ob = new ObjectQuery("Select * From
Win32_fan","availability");
ManagementObjectSearcher searcher = new
ManagementObjectSearcher(serverremoto,ob);
ManagementObjectCollection ritornocollezzione = searcher.Get();
foreach(ManagementObject col in searcher.Get())
Console.WriteLine(col.GetPropertyValue("Availabili ty"));
Console.ReadLine();

thanks in advance

May 17 '06 #1
0 2007

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: eSolTec, Inc. 501(c)(3) | last post by:
Thank you in advance for any and all assistance. It is greatly appreciated. I have a program and I'm able to get the manufactuer of the motherboard using the Win32_Baseboard. I'm working on...
30
by: Mike C# | last post by:
Hi all, anyone know if there are any Windows functions to retrieve CPU Fan Speed and CPU Temp? Or if it's a BIOS-level call, or something else? If someone out there could just point me in the...
16
by: madhu521 | last post by:
I was using This Code... //---Code---// ManagementObjectSearcher mySearcher = new ManagementObjectSearcher("root\\WMI","SELECT * from Win32_TemparatureProbe"); ...
3
by: Toby Webb | last post by:
Hi, can anyone help please? I am trying to get infromation from my wireless card, such as signal strength and a list of SSIDs that it can see. I have been able to get the signal strength (see...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.