How can i get the Screen Brightness using the WMI Current brightness property in c# RRS feed

  • Question

  • Hi,

    I am using the 'CurrentBrightness' property value for and a setting the value. but i see the value returned is wrong from the API.

    Is there any other way to get the exact current brightness value in windows using c#?

    How can i know if the adaptive brightness is checked or not in c#?

    Thanks for the help..!!

    Regards, Ravi Raj Nukala

    Monday, September 10, 2018 11:14 AM

All replies

  • Hi,

    Here is a simple sample which use ManagementScope for your reference.

    //create a management scope object
    ManagementScope scope = new ManagementScope("\\\\.\\ROOT\\WMI");
                //create object query
                ObjectQuery query = new ObjectQuery("SELECT * FROM WmiMonitorBrightness");
                //create object searcher
                ManagementObjectSearcher searcher =
                                        new ManagementObjectSearcher(scope, query);
                //get a collection of WMI objects
                ManagementObjectCollection queryCollection = searcher.Get();
                //enumerate the collection.
                foreach (ManagementObject m in queryCollection)
                    // access properties of the WMI object
                    Console.WriteLine("CurrentBrightness : {0}", m["CurrentBrightness"]);

    Best regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, September 11, 2018 5:08 AM
  • Thank you Zhanglong for your reply...

    Can you please help in letting me know about the adaptive brightness is enabled in windows10? 

    is there any WMI call or Windows API to know Adaptive brightness is enabled or Disabled?

    Thanks for your help!!

    Regards, Ravi Raj Nukala

    Tuesday, September 11, 2018 7:53 AM
  • is there any WMI call or Windows API to know Adaptive brightness is enabled or Disabled?


    Tuesday, September 11, 2018 11:46 AM