By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,214 Members | 1,496 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,214 IT Pros & Developers. It's quick & easy.

wmi win32_fan

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.