Download PowerShell Scriptomatic, and it tells you this result (for my laptop)



__GENUS : 2
__CLASS : Win32_DesktopMonitor
__SUPERCLASS : CIM_DesktopMonitor
__DYNASTY : CIM_ManagedSystemElement
__RELPATH : Win32_DesktopMonitor.DeviceID="DesktopMonitor1"
__PROPERTY_COUNT : 28
__DERIVATION : {CIM_DesktopMonitor, CIM_Display, CIM_UserDevice,
CIM_LogicalDevice...}
__SERVER : ASUSVISTA
__NAMESPACE : root\CIMV2
__PATH : \\.\root\CIMV2:Win32_DesktopMonitor.Devic
eID="DesktopMonitor1"
Availability : 3
Bandwidth :
Caption : Generic PnP Monitor
ConfigManagerErrorCode : 0
ConfigManagerUserConfig : False
CreationClassName : Win32_DesktopMonitor
Description : Generic PnP Monitor
DeviceID : DesktopMonitor1
DisplayType :
ErrorCleared :
ErrorDescription :
InstallDate :
IsLocked :
LastErrorCode :
MonitorManufacturer : (Standard monitor types)
MonitorType : Generic PnP Monitor
Name : Generic PnP Monitor
PixelsPerXLogicalInch : 96
PixelsPerYLogicalInch : 96
PNPDeviceID : DISPLAY\AUO5044\5&87CAC5E&1&UID16777488
PowerManagementCapabilities :
PowerManagementSupported :
ScreenHeight : 800
ScreenWidth : 1280
Status : OK
StatusInfo :
SystemCreationClassName : Win32_ComputerSystem
SystemName : xxxxx

and the actual script:
Code:
$computer = "LocalHost" 
$namespace = "root\CIMV2" 
Get-WmiObject -class Win32_DesktopMonitor -computername $computer -namespace $namespace
The old version, Scriptomatic2 will write VBA code, but that won't run on Windows 7 x64.

If you get that to run, it will give you the code.