|
I'm writing a script that captures environment information (e.g. windows update history, video adapter information, the like) using WMI over the network. I can't figure out how to get resolution and bit-depth information from dual-headed video-cards - I can only get the resolution, etc from the first monitor, not its sibling. I've tried win32_desktopmonitor, CMI_videocontroller, etc... pretty much a lot of bullshit. I'm inclined to think it cannot be done - I tried having processmonitor open and changing the resolution of a monitor and apparently within that timeframe Windows accessed the registry 50,000 times, and the information is stored in incredibly retarded ways (current control set doesn't tell me what loving monitor goes with what resolution or what video card), and the only reliable way I've found even of counting how many monitors are attached is querying Win32_PNPDevice for everything that starts with display, but I can't figure out how to associate resolution settings with PnP device id. I would appreciate being able to find this information out using some dos command but since this script will be used remotely and I can't install new software on the machines I'm pretty much limited to WMI, even though it seems inadequate for this particular task.
|
# ¿ Apr 1, 2009 22:11 |
|
|
# ¿ Apr 26, 2024 13:48 |