Laptop lid status via WMI?
Hello, Does anyone know if it's possible to query WMI to obtain the status of the laptop lid (open or closed)? I realize this probably is OEM specific, but has anyone successfully done this? Thanks in advance.
March 10th, 2011 10:08am

Hi, Please refer to the following similar thread: How do I detect the laptop lid status (closed or open) using powershell? Hope it helps. Alex ZhaoPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
March 14th, 2011 6:12am

Thanks, Alex. I did see that post, and the link that it points to, but it mentions ASL code and leveraging BIOS as a way to accomplish this task. I was hoping to stay higher-level -- C# with pInvoke-like calls is what I had in mind if straight WMI was not available.
March 14th, 2011 1:49pm

Hi, Regarding this query about development, it is recommended to post to MSDN forum for further help; they are the best resource to help you on this issue: Windows: General Category Good luck. Alex ZhaoPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
March 15th, 2011 5:53am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics